[PATCH] debugedit: Guard that .debug_abbrev ends in a zero byte

Mark Wielaard mark@klomp.org
Mon Sep 7 13:11:35 GMT 2026


Hi,

On Wed, 2026-09-02 at 14:50 +0200, Mark Wielaard wrote:
> Abbrev tables end in double zeros (no attr, no form). Check that the
> end of the section (last abbrev table) contains a zero (just like
> string sections). This makes sure that any leb128 read from the
> section termnates before the section ends.
> 
> 	* tools/debugedit.c (edit_dwarf2): Add DEBUG_ABBREV to
> 	sections that should be zero terminated.

Pushed this to main.

Cheers,

Mark


More information about the Debugedit mailing list