about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-03-09 13:57:03 +0100
committervanhauser-thc <vh@thc.org>2023-03-09 13:57:03 +0100
commite0866f51c7984c28866e7acdb153b5304c5cf7da (patch)
tree43449a7ccf85d33bbfd6375290b23d940b6e767d /test
parentaa125f824619fe3c3ebf5ed8a571340397a7c46a (diff)
downloadafl++-e0866f51c7984c28866e7acdb153b5304c5cf7da.tar.gz
support LLVMFuzzerTestOneInput -1 return
Diffstat (limited to 'test')
-rw-r--r--test/test-cmplog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-cmplog.c b/test/test-cmplog.c
index d724ecaf..bd1b73e3 100644
--- a/test/test-cmplog.c
+++ b/test/test-cmplog.c
@@ -8,7 +8,7 @@
 
 int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t i) {
 
-  if (i < 30) return 0;
+  if (i < 30) return -1;
   if (buf[0] != 'A') return 0;
   if (buf[1] != 'B') return 0;
   if (buf[2] != 'C') return 0;