about summary refs log tree commit diff
path: root/test/test-compcov.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-04-26 16:51:21 +0200
committerGitHub <noreply@github.com>2020-04-26 16:51:21 +0200
commit62ec52dd956d62957b431ef804b7956124823f00 (patch)
tree706a66892726df089a9d8bf6e8a6e8b1665ff5a8 /test/test-compcov.c
parentce9c6df45639db922feafb55259e20c7e82af0bf (diff)
parentea876e59a8c1abc979ea05aa4dbe660608aaa9ba (diff)
downloadafl++-62ec52dd956d62957b431ef804b7956124823f00.tar.gz
Merge pull request #336 from AFLplusplus/dev
pull again ...
Diffstat (limited to 'test/test-compcov.c')
-rw-r--r--test/test-compcov.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test-compcov.c b/test/test-compcov.c
index f1743265..c8dd674e 100644
--- a/test/test-compcov.c
+++ b/test/test-compcov.c
@@ -25,11 +25,10 @@ int main(int argc, char **argv) {
     printf("your string was bugmenot\n");
   else if (strcmp(input, "BUFFEROVERFLOW") == 0) {
 
-    buf = malloc(16);
+    buf = (char *)malloc(16);
     strcpy(buf, "TEST");
     strcat(buf, input);
     printf("This will only crash with libdislocator: %s\n", buf);
-    return 0;
 
   } else if (*(unsigned int *)input == 0xabadcafe)