]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Don't crash on out of memory when frame unwinding.
authorMark Wielaard <mjw@redhat.com>
Sat, 13 Feb 2016 18:44:59 +0000 (19:44 +0100)
committerMark Wielaard <mjw@redhat.com>
Mon, 22 Feb 2016 11:12:45 +0000 (12:12 +0100)
commit107ad57b031e9f57f25403dfcf9fa7151deda73c
treeb122e306aa972e277f5775f0c315427ac1c23dc6
parente93e6f9279c34820bed6af17e6df51e1dcb6a8e0
libdwfl: Don't crash on out of memory when frame unwinding.

new_unwound didn't check whether malloc was successful. Check that we
could allocate memory before use and return DWFL_E_NOMEM otherwise.

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