libelf: Fix possible unbounded stack usage in updatemmap.
authorMark Wielaard <mjw@redhat.com>
Sat, 16 May 2015 20:41:36 +0000 (22:41 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 27 May 2015 21:04:31 +0000 (23:04 +0200)
commit2e5df0c35099fc6bb9a114fabd01006b5dc767cc
tree684c4adfbd68541ba17e607a1c1ae7a325c4723f
parentbfb9a752c323b97bfcfb11f4f9dbf4ca25fe3c95
libelf: Fix possible unbounded stack usage in updatemmap.

Allocate temporary shdr storage with malloc, not alloca. Free after
writing section headers.

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