]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Don't error out when sanity checking e_shoff if scncnt is zero.
authorMark Wielaard <mark@klomp.org>
Wed, 4 Oct 2017 18:52:53 +0000 (20:52 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 13 Oct 2017 14:22:06 +0000 (16:22 +0200)
commit4f977868eab2ea196a44e9d96c9e777134411391
treebfb2f56a6f36d03e492c2063a2ab66321579f8ca
parentfef9e11b308465ee83e9559e5e545b9b13da2df2
libelf: Don't error out when sanity checking e_shoff if scncnt is zero.

We won't use the e_shoff value in that case because we will set
elf->state.elf[64|32].scns.cnt to zero to indicate not to read
any section header data from the file.

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