diff options
author | van Hauser <vh@thc.org> | 2024-06-12 19:27:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 19:27:13 +0200 |
commit | b6f85092342cccace4fd0ad1032aeec32a1c029f (patch) | |
tree | 762f659837f7c74dac56aa9a4f7bbc5ff101e8d2 /custom_mutators/aflpp/aflpp.c | |
parent | 0c9b460cc46aebfa4eb6e1fbe928895c0a8fcfbd (diff) | |
parent | d45cd63583b0a888d0867fb77f092a811e99b38e (diff) | |
download | afl++-b6f85092342cccace4fd0ad1032aeec32a1c029f.tar.gz |
Merge pull request #2122 from visitorckw/fix-realloc-check
Fix memory allocation check in aflpp custom mutators
Diffstat (limited to 'custom_mutators/aflpp/aflpp.c')
-rw-r--r-- | custom_mutators/aflpp/aflpp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom_mutators/aflpp/aflpp.c b/custom_mutators/aflpp/aflpp.c index 0b236f76..ea50751a 100644 --- a/custom_mutators/aflpp/aflpp.c +++ b/custom_mutators/aflpp/aflpp.c @@ -48,7 +48,7 @@ size_t afl_custom_fuzz(my_mutator_t *data, uint8_t *buf, size_t buf_size, u8 *ptr = realloc(data->buf, max_size); - if (ptr) { + if (!ptr) { return 0; |