Repository navigation
Memory-safety analysis for C and C++ - #265
Merged
Merged
Conversation
…la 3.9.0, with a temporary CI step that builds chen from main
prabhu
force-pushed
the
feat/memsafe-part1
branch
from
September 28, 2026 04:07
f80cc77 to
50afa6b
Compare
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
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
atom memory-safety, which runs chen's C/C++ memory-safety overlay and writes the findings as JSON.--memory-api-configdescribes project allocator and copy APIs;--min-confidencefilters findings.--suggest-defines/--auto-defines: a census of the#ifblocks hidden by undefined build macros, which suggests defines or applies the ones it can prove.Results on the memory-safety corpus (baseline 0%): recall 62.77% / precision 98.33% at medium confidence, 75.53% / 95.95% at low, no findings on the negative controls. FFmpeg libavformat CVE litmus: 5/13 at medium and 7/13 at low (6 and 8 with
--auto-defines), with no findings at the fixed sites.Needs chen 4.0.0 (AppThreat/chen#188). Until it is published, CI builds chen from main in a temporary step (
.github/actions/chen-from-main), so the checks pass once the chen PR is merged. Remove that step after the chen release.