From fd6fef3d049555f7af24ba94fbcf42a846390dd1 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 9 Jul 2009 13:39:03 -0400 Subject: PR3498, cont'd * dwflpp.cxx (dwfl_report_offline_predicate): Reject NULL filenames. --- dwflpp.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit