diff options
author | van Hauser <vh@thc.org> | 2020-05-28 22:47:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-28 22:47:13 +0200 |
commit | 0555b26161fe98fb6645767416d9c6fe82c99fed (patch) | |
tree | 3e0b34900026e0746210f76c57aa6a389c643cac /test/test-compcov.c | |
parent | b87d97aa2b664f1a5ea90612ba7543b38bc6d24f (diff) | |
parent | f6808158c5983ed892b426d25a967996bbd4a400 (diff) | |
download | afl++-0555b26161fe98fb6645767416d9c6fe82c99fed.tar.gz |
Merge pull request #375 from risicle/ris-llvm-compare-transform-var-sized-dev
llvm_mode compare-transform-pass: add handling of sized comparisons with non-const size
Diffstat (limited to 'test/test-compcov.c')
-rw-r--r-- | test/test-compcov.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/test-compcov.c b/test/test-compcov.c index a2202a22..4959c39c 100644 --- a/test/test-compcov.c +++ b/test/test-compcov.c @@ -20,9 +20,19 @@ int main(int argc, char **argv) { } if (strcmp(input, "LIBTOKENCAP") == 0) - printf("your string was libtokencap\n"); + printf("your string was LIBTOKENCAP\n"); else if (strcmp(input, "BUGMENOT") == 0) - printf("your string was bugmenot\n"); + printf("your string was BUGMENOT\n"); + else if (strncmp(input, "BANANA", 3) == 0) + printf("your string started with BAN\n"); + else if (strcmp(input, "APRI\0COT") == 0) + printf("your string was APRI\n"); + else if (strcasecmp(input, "Kiwi") == 0) + printf("your string was Kiwi\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 (strcmp(input, "BUFFEROVERFLOW") == 0) { buf = (char *)malloc(16); |