]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Fix possible unbounded stack usage in load_shdr_wrlock.
authorMark Wielaard <mjw@redhat.com>
Sun, 31 May 2015 14:09:01 +0000 (16:09 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 5 Jun 2015 12:48:55 +0000 (14:48 +0200)
commit96f6c995ff041c7c874179f7542b244713e54570
tree76f5cab48448d0f2b3c1b8a81f6c8bed023d642f
parent2ec518247897bfa41327db2627e1e6112e5d59da
libelf: Fix possible unbounded stack usage in load_shdr_wrlock.

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

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