Skip to content

feat: CWE checker more ISAs - #1564

Open
jstucke wants to merge 2 commits into
masterfrom
cwe-checker-more-archs
Open

jstucke wants to merge 2 commits into
masterfrom
cwe-checker-more-archs

Conversation

@jstucke

@jstucke jstucke commented Nov 11, 2026

Copy link
Copy Markdown
Collaborator
  • fix: fix for wrong image tag in cwe-checker install.py
  • feat: add support more ISAs in the cwe_checker plugin
    • CWE checker apparently already supports them, they were just missing from the list in the plugin

supersedes #1551

jstucke and others added 2 commits November 11, 2026 17:15
The plugin only passed ARM, x86/x64, MIPS and PowerPC binaries to the
cwe_checker. The cwe_checker's acceptance checks also work on LoongArch
(20/21), SPARC V9 (17/21) and RISC-V incl. RV32GC (same as RV64), so
accept these architectures as well.

32-bit SPARC (V7/V8) stays excluded: there, the cwe_checker panics
(InvalidShiftAmount in bitvector.rs), which aborts the whole analysis.
Soft-float RV32 also fails in the p-code extraction; this is reported
as a failed analysis by the existing error handling.

Update the pinned image (internal/docker.py, used by the plugin and the
installer) to the current ghcr.io/fkie-cad/cwe_checker build, which
fixes a panic in the scanf/sscanf handling (cwe_checker 3181fe4) that
aborted analyses on all architectures. Bump the plugin version since
results change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.52%. Comparing base (fa6a600) to head (8c9f276).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1564      +/-   ##
==========================================
- Coverage   93.13%   92.52%   -0.61%     
==========================================
  Files         377      371       -6     
  Lines       23829    21315    -2514     
==========================================
- Hits        22193    19722    -2471     
+ Misses       1636     1593      -43     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants