Not setting a vendor code before use would be invalid which we tried to
catch. But to detect that we do need to initialize the vendor array to
zero first.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2014-01-14 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug_macro_section): Clear vendor array before
+ use.
+
2014-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
Fix corruption of non-C++ symbols by the demangler.
}
const unsigned char *vendor[DW_MACRO_GNU_hi_user - DW_MACRO_GNU_lo_user];
+ memset (vendor, 0, sizeof vendor);
if (flag & 0x04)
{
// 1 byte length, for each item, 1 byte opcode, uleb128 number