When printing unknown note types, readelf prints the raw description
section byte-by-byte. However, it does not mask appropriately, e.g. it
prints the byte 'ba' as '
ffffffba'.
* readelf.c (process_note): Mask unknown description data bytes.
+2019-08-08 Jordan Rupprecht <rupprecht@google.com>
+
+ * readelf.c (process_note): Mask unknown description data bytes.
+
2019-08-08 Alan Modra <amodra@gmail.com>
* readelf.c (get_data): Improve overflow checks.
printf (_(" description data: "));
for (i = 0; i < pnote->descsz; i++)
- printf ("%02x ", pnote->descdata[i]);
+ printf ("%02x ", pnote->descdata[i] & 0xff);
if (!do_wide)
printf ("\n");
}