diff options
author | vanhauser-thc <vh@thc.org> | 2021-07-30 09:15:59 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-07-30 09:15:59 +0200 |
commit | 233a6280471d3bed2a9bfae4e13cefdfb3da7245 (patch) | |
tree | 0d1d7e6be8a30d73542eacb7ac777994ca4e3a7a /test | |
parent | c3fbf5dca309e80e91f9bee9ff6d13f6aa240427 (diff) | |
download | afl++-233a6280471d3bed2a9bfae4e13cefdfb3da7245.tar.gz |
fix testcase
Diffstat (limited to 'test')
-rw-r--r-- | test/test-compcov.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-compcov.c b/test/test-compcov.c index ae63ca45..24e4c9f2 100644 --- a/test/test-compcov.c +++ b/test/test-compcov.c @@ -29,12 +29,12 @@ int main(int argc, char **argv) { printf("your string was APRI\n"); else if (strcasecmp(input, "Kiwi") == 0) printf("your string was Kiwi\n"); - else if (strstr(input, "tsala") == 0) - printf("your string is a fruit salad\n"); else if (strncasecmp(input, "avocado", 9) == 0) printf("your string was avocado\n"); else if (strncasecmp(input, "Grapes", argc > 2 ? atoi(argv[2]) : 3) == 0) printf("your string was a prefix of Grapes\n"); + else if (strstr(input, "tsala") != NULL) + printf("your string is a fruit salad\n"); else if (strcmp(input, "BUFFEROVERFLOW") == 0) { buf = (char *)malloc(16); @@ -43,7 +43,6 @@ int main(int argc, char **argv) { printf("This will only crash with libdislocator: %s\n", buf); } else if (*(unsigned int *)input == 0xabadcafe) - printf("GG you eat cmp tokens for breakfast!\n"); else if (memcmp(cmpval, input, 8) == 0) printf("local var memcmp works!\n"); |