[PATCH] src/elflint.c: fix printing of unknown flags
Mark Wielaard
mark@klomp.org
Mon Jan 11 22:39:12 GMT 2021
Hi Sergei,
On Thu, Dec 31, 2020 at 12:11:42PM +0000, Sergei Trofimovich via Elfutils-devel wrote:
> before the change section_flags_string() ignored unknown section
> flags: snprintf() did write numeric value int obuffer, but
> "*cp = '\0'" hegated the effect.
>
> The change advances the 'cp' pointer'.
>
> While at it add a '|' separator between known and unknown flags.
Nice. Thanks for finding this.
Added with a ChangeLog entry and slightly updating the code formatting.
Cheers,
Mark
More information about the Elfutils-devel
mailing list