selinux/checkpolicy/fuzz
Christian Göttsche e7bbd67be6 checkpolicy/fuzz: fix setjmp condition
setjmp(3) returns 0 on the first fake invocation, adjust the condition
accordingly.

Reported by the OSS Fuzz Introspector[1].

[1]: https://storage.googleapis.com/oss-fuzz-introspector/selinux/inspector-report/20241016/fuzz_report.html

Fixes: f07fc2a75 ("checkpolicy/fuzz: override YY_FATAL_ERROR")
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
2024-10-30 08:04:38 -04:00
..
checkpolicy-fuzzer.c checkpolicy/fuzz: fix setjmp condition 2024-10-30 08:04:38 -04:00
checkpolicy-fuzzer.dict checkpolicy: add libfuzz based fuzzer 2024-03-04 09:54:47 -05:00
min_pol.conf checkpolicy: add libfuzz based fuzzer 2024-03-04 09:54:47 -05:00
min_pol.mls.conf checkpolicy: add libfuzz based fuzzer 2024-03-04 09:54:47 -05:00