avifenesh/layout-audit

Analyze binary memory layouts to detect padding inefficiencies

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Dec 19, 2025
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: avifenesh/layout-audit@5045695c50e3415233e0c9c15bea448df43a2ab7 # v0.5.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
binaryPath to the binary file to analyzeyes
commandCommand to run: inspect, diff, check, or suggestnoinspect
baselinePath to baseline binary (for diff command)no
configPath to config file (for check command)no.layout-audit.yaml
filterFilter structs by name (substring match)no
outputOutput format: table, json, or sarifnotable
sort-bySort by: name, size, padding, or padding-pctnopadding
topShow only top N structsno
min-paddingShow only structs with at least N bytes of paddingno
min-savingsShow only structs with at least N bytes of potential savings (for suggest command)no
sort-by-savingsSort suggestions by savings amount (for suggest command)nofalse
fail-on-regressionFail if size or padding increased (for diff command)nofalse
versionVersion of layout-audit to usenolatest
namedescription
reportThe layout-audit output
sarif-pathPath to SARIF file (when output=sarif)