summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2009-07-09 13:39:03 -0400
committerFrank Ch. Eigler <fche@elastic.org>2009-07-09 13:40:14 -0400
commitfd6fef3d049555f7af24ba94fbcf42a846390dd1 (patch)
tree719582edebca719970844c7e0e822dfdb8f58764 /dwflpp.cxx
parent07089f8b693de995b5fd51b28a4846122143138e (diff)
downloadsystemtap-steved-fd6fef3d049555f7af24ba94fbcf42a846390dd1.tar.gz
systemtap-steved-fd6fef3d049555f7af24ba94fbcf42a846390dd1.tar.xz
systemtap-steved-fd6fef3d049555f7af24ba94fbcf42a846390dd1.zip
PR3498, cont'd
* dwflpp.cxx (dwfl_report_offline_predicate): Reject NULL filenames.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index 531d413e..8fa31c6a 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -260,6 +260,10 @@ static int dwfl_report_offline_predicate (const char* modname, const char* filen
assert (offline_search_modname);
+ // elfutils sends us NULL filenames sometimes if it can't find dwarf
+ if (filename == NULL)
+ return 0;
+
if (dwflpp::name_has_wildcard (offline_search_modname)) {
int match_p = !fnmatch(offline_search_modname, modname, 0);
// In the wildcard case, we don't short-circuit (return -1) upon