]> git.ipfire.org Git - thirdparty/elfutils.git/commit
libdwfl: Return failure from dwfl_standard_find_debuginfo for NULL module.
authorMark Wielaard <mark@klomp.org>
Sat, 9 May 2020 20:09:40 +0000 (22:09 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 14 May 2020 12:30:57 +0000 (14:30 +0200)
commitdca13089f93807f99f447b9b033ac27a43ff913f
treed4de4894f18edbc3b3a65b240eca613bc5136ab4
parent5d769dd05d2e10dd35dc34e105d6f1f19b57d124
libdwfl: Return failure from dwfl_standard_find_debuginfo for NULL module.

GCC10 -fanalyzer plus -flto notices that some functions called by
dwfl_standard_find_debuginfo check that the given module isn't NULL,
but others expect it to be non-NULL. Just return a failure immediately
when a NULL mod is passed to dwfl_standard_find_debuginfo.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/find-debuginfo.c