1
0
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:
Douglas Bagnall 2021-01-28 17:33:22 +13:00 committed by Jeremy Allison
parent c9f51f1672
commit 17602fefde

View File

@ -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;
}
}