summaryrefslogtreecommitdiff
path: root/lib/fuzzing/fuzz_reg_parse.c
AgeCommit message (Collapse)AuthorFilesLines
2023-08-08lib/fuzzing: LLVMFuzzerTestOneInput() takes const uint8_t*Douglas Bagnall1-1/+1
We have been using `uint8_t *`, which works fine as far as linking goes, but leads fuzz target developers to sometimes forget why they can't just modify the passed in string instead of copying it for modification (e.g. to NUL-terminate). REF: https://llvm.org/docs/LibFuzzer.html#fuzz-target Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-12-10lib/fuzzing: Tell the compiler we know we are ignoring errors in fuzz_reg_parseAndrew Bartlett1-2/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-10-18Add fuzzing binary for reg_parseMichael Hanselmann1-0/+47
A temporary file is used to store the fuzzing input. Signed-off-by: Michael Hanselmann <public@hansmi.ch> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>