]> git.ipfire.org Git - thirdparty/elfutils.git/commit
elflint: Sanity check the number of phdrs and shdrs available.
authorMark Wielaard <mark@klomp.org>
Mon, 27 Mar 2017 23:25:34 +0000 (01:25 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 3 Apr 2017 22:24:02 +0000 (00:24 +0200)
commit4314716cd498bb51639db717bd7ce6182de33322
tree3fc46a11116b9e546e9f2f47ba21768e5d66bf95
parent61fe61898747f63eb35a81c2261f3590a3dab8fd
elflint: Sanity check the number of phdrs and shdrs available.

Make sure we can at least read the shnum sections or phnum segments.
Limit the number we do check to those we can actually read.

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

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