Skip to content

Commit

Permalink
dumpelf: free elf after fuzzing it to avoid leaking
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
vapier committed Jan 25, 2024
1 parent 0b5d5d3 commit af9a4e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dumpelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af9a4e8

Please sign in to comment.