]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Make sure ar_size is terminated when reading ar long names.
authorMark Wielaard <mark@klomp.org>
Thu, 14 Feb 2019 10:47:59 +0000 (11:47 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 14 Feb 2019 10:47:59 +0000 (11:47 +0100)
commite32380ecefbb23448541367283d3b94930762986
treed29445fc01b15cb3459f6f07be2bc15d56d1b30c
parente8f8dc465a1fa496aa627a330886c0f70f98d4c0
libelf: Make sure ar_size is terminated when reading ar long names.

The ar_size is given as a fixed size decimal string, right padded with
spaces.  Make sure we read it properly even if there is no terminating
space. Also sanity check len early if we can.

https://sourceware.org/bugzilla/show_bug.cgi?id=24085

Signed-off-by: Mark Wielaard <mark@klomp.org>
libelf/ChangeLog
libelf/elf_begin.c