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-23 16:08:36 +0200
committervan Hauser <vh@thc.org>2020-04-23 16:08:36 +0200
commitb6f9f4c436bc8c63f9039847d2a7b6e13da3515e (patch)
tree523a401d970c0c4599ca6b228fd4703ca10b0e8a /test/test-compcov.c
parentb120ca27f86c332854687bb67c4c18d2e6b74ac9 (diff)
downloadafl++-b6f9f4c436bc8c63f9039847d2a7b6e13da3515e.tar.gz
minor changes
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..5278af93 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)