Re: [PATCH] libdw, readelf: Don't handle DW_FORM_data16 as expression block/location.

2018-06-17 Thread Mark Wielaard
On Fri, Jun 15, 2018 at 04:30:14PM +0200, Mark Wielaard wrote: > Also found by afl-fuzz on the varlocs testcase. > DW_FORM_data16 is constant from according to the DWARF5 spec. > But since it is 128bits it isn't really representable as Dwarf_Word. > So we treat it as block form. But we cannot treat

[PATCH] libdw, readelf: Don't handle DW_FORM_data16 as expression block/location.

2018-06-15 Thread Mark Wielaard
Also found by afl-fuzz on the varlocs testcase. DW_FORM_data16 is constant from according to the DWARF5 spec. But since it is 128bits it isn't really representable as Dwarf_Word. So we treat it as block form. But we cannot treat it as an expression block. Make sure readelf prints it as a regular bl