[PATCH] libdwfl: Make sure dwfl_elf_phdr_memory_callback returns at least minread

Mark Wielaard mark@klomp.org
Mon Jan 3 23:38:05 GMT 2022


On Thu, Dec 23, 2021 at 11:19:31PM +0100, Mark Wielaard wrote:
> The callers of dwfl_elf_phdr_memory_callback assume at least minread
> bytes are read and available. Make sure to check start is smaller than
> elf->maximum_size before reading more. Return false if end - start is
> smaller than minread.
> 
> Found by afl-fuzz.

Pushed to master.



More information about the Elfutils-devel mailing list