cve-toolkit

CVE helper toolkit
git clone git://git.finwo.net/app/cve-toolkit
Log | Files | Refs | README | LICENSE

commit 0e3a33425094a5568fa6c2f74da987e86bd771e6
parent 255a61f1a59d0a2e0f36c3080d75562fe22bd293
Author: finwo <finwo@pm.me>
Date:   Mon, 18 May 2026 14:01:10 +0200

Consistent return codes

Diffstat:
Msrc/detector/cve-2026-31431.c | 2+-
Msrc/detector/cve-2026-43284.c | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/detector/cve-2026-31431.c b/src/detector/cve-2026-31431.c @@ -25,7 +25,7 @@ int detector_cve_2026_31431(struct cve_context *ctx) { return 0; } - return 2; + return 1; } __attribute__((constructor)) void detector_cve_2026_31431_setup() { diff --git a/src/detector/cve-2026-43284.c b/src/detector/cve-2026-43284.c @@ -2272,7 +2272,7 @@ int detector_cve_2026_43284(struct cve_context *ctx) { /* System is vulnerable — restore artifacts before returning. */ revert_su(); revert_passwd(); - return 3; + return 1; } revert_su(); } @@ -2286,7 +2286,7 @@ int detector_cve_2026_43284(struct cve_context *ctx) { /* System is vulnerable — restore artifacts before returning. */ revert_su(); revert_passwd(); - return 3; + return 1; } }