]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdw: Call Dwarf oom_handler() when malloc fails in __libdw_alloc_tail.
authorMark Wielaard <mark@klomp.org>
Sat, 25 Apr 2020 23:41:27 +0000 (01:41 +0200)
committerMark Wielaard <mark@klomp.org>
Sun, 26 Apr 2020 00:33:02 +0000 (02:33 +0200)
commit5436c7529dd9b24f62e3df10e30d5da53da16efd
treec699df50d89e23e7e7ab96e4359f486a2cc7553b
parent8c5bd878a940817088fd7907eb9d503ec98d3437
libdw: Call Dwarf oom_handler() when malloc fails in __libdw_alloc_tail.

GCC10 -fanalyzer found a possibly-NULL dereference after a failed
malloc in __libdw_alloc_tail. In this case we should call the Dwarf
oom_handler as is done in other places where an essential malloc
call fails. The oom_handler cannot return and will likely just abort.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/libdw_alloc.c