]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Make sure we have at least a full ELF header available.
authorMark Wielaard <mark@klomp.org>
Wed, 16 Dec 2020 09:57:22 +0000 (10:57 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 16 Dec 2020 10:01:52 +0000 (11:01 +0100)
commitd21692c7ebc4d511d1b40e9c0cc8d95c590c2070
tree5d439c4b29a72eef9e78aab4eb96843747cba930
parenta5b95a38b77d7e9387945d06a2b6318c1aa6f5a4
libelf: Make sure we have at least a full ELF header available.

When elf_memory is called we could get a slightly too small image
that doesn't contain a full ELF header (but does contain at least
the e_ident values). Require the full header before even validating
the rest of the ELF header fields.

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

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