diff options
author | 2024-01-25 00:53:39 -0500 | |
---|---|---|
committer | 2024-01-25 00:53:39 -0500 | |
commit | af9a4e8e1695fcbaaeb379bec14ccc03b00341fa (patch) | |
tree | 7ce02dfb386d00b9e332bd4fbc3e6566e381da2f | |
parent | paxelf: reject ELFs with incomplete Ehdr structures (diff) | |
download | pax-utils-af9a4e8e1695fcbaaeb379bec14ccc03b00341fa.tar.gz pax-utils-af9a4e8e1695fcbaaeb379bec14ccc03b00341fa.tar.bz2 pax-utils-af9a4e8e1695fcbaaeb379bec14ccc03b00341fa.zip |
dumpelf: free elf after fuzzing it to avoid leaking
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | dumpelf.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -587,6 +587,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) if (elf == NULL) return 0; dumpelf(elf, 0); + unreadelf(elf); return 0; } #else |