mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
fuzz:afl main: add a diagnostic message
LLVMFuzzerTestOneInput() NEVER returns non-zero, but if it does, we might as well know what made it do so Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
c9f51f1672
commit
17602fefde
@ -38,6 +38,8 @@ int main(int argc, char *argv[]) {
|
||||
ret = LLVMFuzzerTestOneInput(buf, size);
|
||||
TALLOC_FREE(buf);
|
||||
if (ret != 0) {
|
||||
printf("LLVMFuzzerTestOneInput returned %d on argument %d\n",
|
||||
ret, i);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user