[PATCH] debugedit: Add CU sanity check to edit_info

Mark Wielaard mark@klomp.org
Mon Sep 7 13:09:40 GMT 2026


Hi,

On Tue, 2026-09-01 at 13:55 +0200, Mark Wielaard wrote:
> We rely on the .debuginfo sections to be valid DWARF, for example to
> use embedded string (DW_FORM_string). Add a sanity check that each CU
> should end in a zero DIE ('\0').
> 
> 	* tools/debugedit.c (edit_info): Check CU ends with zero DIE.

I pushed this to main.

Cheers,

Mark


More information about the Debugedit mailing list