libelf: Fix possible unbounded stack usage in updatefile.
authorMark Wielaard <mjw@redhat.com>
Sun, 17 May 2015 08:30:57 +0000 (10:30 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 27 May 2015 21:04:31 +0000 (23:04 +0200)
commite6261005eaa1cf19107fb8963f8cb55e2c1367a7
tree0f9b1fee5915cfc76b78dc9ae755a30b8137bb78
parent2e5df0c35099fc6bb9a114fabd01006b5dc767cc
libelf: Fix possible unbounded stack usage in updatefile.

Allocate shdr_data and scns with malloc, not alloca. Free after writing
section headers.

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