summaryrefslogtreecommitdiff
path: root/fuzz-sbat.c
AgeCommit message (Collapse)Author
2023-06-29Add libFuzzer support to the .sbat parser.Peter Jones
shim takes several forms of input from several sources that are not necessarily trustworthy. As such, we need to take measures to validate that we don't have unacceptable results from bad inputs. One such measure is "fuzzing" the inputs which parse untrusted data by running them with randomized or partially randomized input. This change adds such testing using clang's "libFuzzer" to our parser for ".sbat" sections. I've run it for about half an hour and so far it found one memory leak, but no other errors. Signed-off-by: Peter Jones <pjones@redhat.com>