]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Fix unbounded stack usage in elf_getarsym for !ALLOW_UNALIGNED case.
authorMark Wielaard <mjw@redhat.com>
Sun, 31 May 2015 13:58:20 +0000 (15:58 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 5 Jun 2015 12:48:55 +0000 (14:48 +0200)
commitf78e8640475ac1ea0b29bff79fbc77c0dfa47657
treefe8561995d13cfd9d0bfa070344fc0b762087e77
parent0d528f9ceff2b96c521cefd75fc62d7151e3e6b1
libelf: Fix unbounded stack usage in elf_getarsym for !ALLOW_UNALIGNED case.

The number of entries in the index can be large, don't use alloca to
read in temporary data, use malloc (which is freed after out).

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