]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libelf: Fix possible unbounded stack usage in elf_getarsym.
authorMark Wielaard <mjw@redhat.com>
Sat, 16 May 2015 19:30:41 +0000 (21:30 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 27 May 2015 21:04:31 +0000 (23:04 +0200)
commitbfb9a752c323b97bfcfb11f4f9dbf4ca25fe3c95
tree933cb01b7ddedd67b62d76503a215f3d71f7607f
parent6f2e64a03bdf10d5b0ab730e58aedb8dfb76b6d8
libelf: Fix possible unbounded stack usage in elf_getarsym.

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

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