about summary refs log tree commit diff
path: root/test/test-custom-mutator.c
diff options
context:
space:
mode:
authorDominik Maier <domenukk@gmail.com>2020-03-30 18:20:20 +0200
committerDominik Maier <domenukk@gmail.com>2020-04-01 13:10:07 +0200
commit710a29a1e0b8c874cdba43a16879f7f77e917713 (patch)
tree9454d93e5ea4a672ee609d12e286e3a6ad1cdf0c /test/test-custom-mutator.c
parentc36c34cf9e3c7f34466efbb191100b6ae699091c (diff)
downloadafl++-710a29a1e0b8c874cdba43a16879f7f77e917713.tar.gz
fixed testcase
Diffstat (limited to 'test/test-custom-mutator.c')
-rw-r--r--test/test-custom-mutator.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test-custom-mutator.c b/test/test-custom-mutator.c
index b44c3634..83baafab 100644
--- a/test/test-custom-mutator.c
+++ b/test/test-custom-mutator.c
@@ -10,11 +10,10 @@
 
 int main(int argc, char *argv[])
 {
-    char str[100]={ };
+    char str[100];
     read(0, str, 100);
-    int *ptr = NULL;
-    if( str[0] == 'P') {
-        *ptr = 123;
+    if( str[6] == 'A') {
+        abort();
     }
     return 0;
 }