Repository navigation
feat: add binary diff, distro targets, and JSON/Markdown/SARIF formats - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds binary regression diffing, built-in Linux distro baselines, and structured CI output formats ahead of
v0.1.0:src/distro.rs: built-in compatibility baselines forrhel-8,ubuntu-20.04,debian-11,rhel-9,ubuntu-22.04,debian-12,ubuntu-24.04, anddebian-13(plus aliases likerocky-8,manylinux_2_28,jammy,bookworm,noble). Appends a Distro Compatibility matrix tobincompat scanand wires--target <distro>intobincompat check(enforcingGLIBC,GLIBCXX, andGLIBC_ABI_DT_RELRfor distros below glibc 2.36).src/diff.rs:bincompat diff <baseline> <candidate>compares two ELF64 binaries and exits1on newDT_NEEDEDlibraries, raised symbol version floors (with offending symbol attribution), new linker ABI tags, addedDT_RPATH/DT_RUNPATHentries, or weakenedPIE/RELRO/NX/stack-canary controls, while reporting improvements separately.src/report.rs&src/main.rs: adds--format text|json|markdown|sarifacrossscan,check, anddiffwith hand-rolled RFC-8259 JSON escaping and SARIF 2.1.0 rule IDs (BC001..BC007,BC101..BC105), keeping zero external crate dependencies and#![forbid(unsafe_code)].tests/diff_and_formats.rs: synthetic ELF64 tests, strict RFC-8259 JSON validator, SARIF 2.1.0 verification, and a livegcchardened-vs-unhardeneddifftest on Linux.README.mdandassets/demo.pngwith live CLI output.Verified locally with
cargo fmt --all -- --check,cargo clippy --all-targets -- -D warnings, andcargo test --all-targets(21/21 passing).