summaryrefslogtreecommitdiff
path: root/src/boot/efi/fuzz-bcd.c
Commit message (Collapse)AuthorAgeFilesLines
* fuzz: Introduce DO_NOT_OPTIMIZEJan Janssen2022-09-251-6/+2
| | | | | | | | | | | | | | | The compiler may decide computations like these are not doing anything and decide to optimize them away. This would defeat the whole fuzzing exercise. This macro will force the compiler to materialize the value no matter what. It should be less prone to accidents compared to using log functions, which would either slow things down or still optimize the value away (or simply move it into the if branch the log macros create). The benefit over assert_se would be that no requirement is made on the value itself. If we are fine getting a string of any size (including zero), an assert_se would either create a noisy compiler warning about conditions that would alawys be met or yet again optimize the whole thing away.
* fuzz-bcd: Do not include bcd.cJan Janssen2022-09-251-2/+1
| | | | This is not needed anymore, so do it the proper way now.
* fuzzers: ignore size limits when compiled standaloneZbigniew Jędrzejewski-Szmek2022-05-121-1/+1
| | | | | This way we can still call fuzzers on old samples, but oss-fuzz will not waste its and our time finding overly large inputs.
* fuzz-bcd: silence warning about always-true comparisonZbigniew Jędrzejewski-Szmek2022-01-041-1/+2
| | | | Occurs with gcc-11.2.1-7.fc35.x86_64.
* tests: add fuzz-bcdEvgeny Vereshchagin2021-12-291-0/+26