avifenesh/layout-audit
Analyze binary memory layouts to detect padding inefficiencies
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Dec 19, 2025
- License
- Apache 2.0
Pinned Snippet
uses: avifenesh/layout-audit@5045695c50e3415233e0c9c15bea448df43a2ab7 # v0.5.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| binary | Path to the binary file to analyze | yes | — |
| command | Command to run: inspect, diff, check, or suggest | no | inspect |
| baseline | Path to baseline binary (for diff command) | no | — |
| config | Path to config file (for check command) | no | .layout-audit.yaml |
| filter | Filter structs by name (substring match) | no | — |
| output | Output format: table, json, or sarif | no | table |
| sort-by | Sort by: name, size, padding, or padding-pct | no | padding |
| top | Show only top N structs | no | — |
| min-padding | Show only structs with at least N bytes of padding | no | — |
| min-savings | Show only structs with at least N bytes of potential savings (for suggest command) | no | — |
| sort-by-savings | Sort suggestions by savings amount (for suggest command) | no | false |
| fail-on-regression | Fail if size or padding increased (for diff command) | no | false |
| version | Version of layout-audit to use | no | latest |
Outputs
| name | description |
|---|---|
| report | The layout-audit output |
| sarif-path | Path to SARIF file (when output=sarif) |