]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Fix possible unbounded stack usage in cache_sections.
authorMark Wielaard <mjw@redhat.com>
Mon, 18 May 2015 14:23:06 +0000 (16:23 +0200)
committerMark Wielaard <mjw@redhat.com>
Wed, 27 May 2015 21:04:31 +0000 (23:04 +0200)
commitbe17786f9df7a59df24d2c1b4b2d36614da8e241
tree3593ae72fc1957bb2ed6cecdac6ad6fc4109bcea
parent390dd3d21c5b92dda139da744edae7093d70fc9b
libdwfl: Fix possible unbounded stack usage in cache_sections.

For modules with lots of sections cache_sections could blow up the stack
theoretically. Don't use alloca, but use malloc with explicit free.

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