]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Fix possible unbounded stack usage in getphdr_wrlock.
authorMark Wielaard <mjw@redhat.com>
Sun, 31 May 2015 14:05:34 +0000 (16:05 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 5 Jun 2015 12:48:55 +0000 (14:48 +0200)
commit2ec518247897bfa41327db2627e1e6112e5d59da
treed69c7b7ac2e5a6b942fc948b4a60decb3196abff
parentf78e8640475ac1ea0b29bff79fbc77c0dfa47657
libelf: Fix possible unbounded stack usage in getphdr_wrlock.

When a copy needs to be made of the phdrs, allocate with malloc and free
after conversion instead of calling alloca.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
libelf/ChangeLog
libelf/elf32_getphdr.c