[PATCH v2 1/1] readelf: invalid error message triggered when last tag is an empty string
Jan Beulich
jbeulich@suse.com
Mon Jun 23 05:53:41 GMT 2025
On 20.06.2025 17:13, Matthieu Longo wrote:
> On 2025-06-20 09:40, Jan Beulich wrote:
>> On 19.06.2025 10:43, Matthieu Longo wrote:
>>> + print_symbol_name ((int) maxlen, (const char *) p);
>>
>> ... the function will bail early if passed 0.
>>
>> However - is using print_symbol_name() actually correct here? Surely it
>> is bogus to demangle this string, in the (however unlikely) event that it
>> turns out demanglable?
>
> I think that it is correct. It will print "[...]" for a string finishing
> with no null terminator, but you can trigger the printing of the string
> until a maximum of maxlen if you pass -T (--silent-truncation) to readelf.
You don't touch on the demangling aspect at all?
Jan
More information about the Binutils
mailing list