Re: [PATCH] readelf: While printing .debug_loc make sure that next_off doesn't overflow.

2018-06-15 Thread Mark Wielaard
On Wed, Jun 13, 2018 at 03:24:45PM +0200, Mark Wielaard wrote: > Found by the afl fuzzer. The next offset (after a locview) comes from a > DIE loclist attribute. This could be a bogus value so large it overflows > the buffer and makes us print past the end of buffer. Pushed to master.

[PATCH] readelf: While printing .debug_loc make sure that next_off doesn't overflow.

2018-06-13 Thread Mark Wielaard
Found by the afl fuzzer. The next offset (after a locview) comes from a DIE loclist attribute. This could be a bogus value so large it overflows the buffer and makes us print past the end of buffer. Signed-off-by: Mark Wielaard --- src/ChangeLog | 5 + src/readelf.c | 4 +++- 2 files changed