Skip to content

fix(flawfinder): name 2.0.16, the first version with --sarif - #212

Merged
SizzleUnrlsd merged 3 commits into
mainfrom
fix/flawfinder-sarif-version
Oct 26, 2026
Merged

SizzleUnrlsd merged 3 commits into
mainfrom
fix/flawfinder-sarif-version

Conversation

@SizzleUnrlsd

Copy link
Copy Markdown
Contributor

CoreTrace's flawfinder warning and the comment beside it gave 2.0 as the minimum version, which is wrong: flawfinder added --sarif in 2.0.16 (2021-05-31, per its ChangeLog). CoreTrace always passes --sarif, so with an older 2.0.x release flawfinder fails and the run ends incomplete.

Changes

  • test: adds ctrace_flawfinder_without_sarif_names_the_version_it_needs. It uses a flawfinder that prints no SARIF (/bin/echo) and checks that the warning names 2.0.16. Before the fix it failed, because the warning still said 2.0.
  • fix(flawfinder): the warning and the comment now name 2.0.16.
  • docs(changelog): corrects the Unreleased entry, which said that every --static run ends incomplete because of IKOS. Each tool only gets the files of its language (planJobs, IAnalysisTool::analyzes), so IKOS does not run on Python-only inputs. Only --static runs on C or C++ sources end incomplete.

The README states the same two things. It will be corrected by the README rewrite, which comes as a separate pull request.

Verification (macOS, LLVM 20, Python analyzer off)

  • ctest: 100/100 passed. The new test failed before the fix.
  • scripts/format-check.sh with clang-format 20: passed.
  • scripts/check-license-compliance.sh: passed.
  • git diff --check: no whitespace errors.

…warning and the comment

Flawfinder writes SARIF since 2.0.16 (2021-05-31, per its ChangeLog). With an
older 2.0.x, CoreTrace's --sarif fails, so the run ends incomplete.
…incomplete

IKOS only gets C and C++ files, so a --static run on Python sources alone
does not start it.
@SizzleUnrlsd SizzleUnrlsd added the bug Something isn't working label Oct 26, 2026
@SizzleUnrlsd SizzleUnrlsd self-assigned this Oct 26, 2026
@SizzleUnrlsd
SizzleUnrlsd merged commit ce3e47d into main Oct 26, 2026
9 checks passed
@SizzleUnrlsd
SizzleUnrlsd deleted the fix/flawfinder-sarif-version branch October 26, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant