diff options
author | van Hauser <vh@thc.org> | 2023-03-26 13:36:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-26 13:36:31 +0200 |
commit | 7101192865893e00b9029d0cb898a3ca3015d50b (patch) | |
tree | a24bd6696a4df892441be7d88df6413c953bd3bb /utils/aflpp_driver/aflpp_driver_test.c | |
parent | 64fd01d46ca8806cf014b98c4c54412f4e3e81e0 (diff) | |
parent | 19f96129109c6394fdc45dfae3885c2d7e08977d (diff) | |
download | afl++-7101192865893e00b9029d0cb898a3ca3015d50b.tar.gz |
Merge pull request #1682 from AFLplusplus/dev
push to stable
Diffstat (limited to 'utils/aflpp_driver/aflpp_driver_test.c')
-rw-r--r-- | utils/aflpp_driver/aflpp_driver_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/aflpp_driver/aflpp_driver_test.c b/utils/aflpp_driver/aflpp_driver_test.c index 7cffa4a1..32119485 100644 --- a/utils/aflpp_driver/aflpp_driver_test.c +++ b/utils/aflpp_driver/aflpp_driver_test.c @@ -2,6 +2,8 @@ #include <stdlib.h> #include <stdint.h> +char *foo = NULL; + int __attribute__((noinline)) crashme(const uint8_t *Data, size_t Size) { if (Size < 5) return -1; @@ -10,7 +12,7 @@ int __attribute__((noinline)) crashme(const uint8_t *Data, size_t Size) { if (Data[1] == 'A') if (Data[2] == '$') if (Data[3] == '$') - if (Data[4] == '$') abort(); + if (Data[4] == '$') *foo = 1; return 0; |