libelf: Correctly decode ar_mode as octal string
authorMark Wielaard <mark@klomp.org>
Sun, 28 Aug 2022 17:51:13 +0000 (19:51 +0200)
committerMark Wielaard <mark@klomp.org>
Wed, 14 Sep 2022 18:47:45 +0000 (20:47 +0200)
commitee188125b10d1588a0536af033d7b7b1bbbaafaf
tree2f436cd55984f3390575bb1a384bfdf25c1f22c5
parent6e0240802160634b01f85ab8a511771cd86cceb8
libelf: Correctly decode ar_mode as octal string

ar_mode is encoded as an octal ascii string, not decimal. Add a new
OCT_FIELD macro to decode it.

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

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