diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2009-07-09 13:39:03 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2009-07-09 13:40:14 -0400 |
commit | fd6fef3d049555f7af24ba94fbcf42a846390dd1 (patch) | |
tree | 719582edebca719970844c7e0e822dfdb8f58764 /dwflpp.cxx | |
parent | 07089f8b693de995b5fd51b28a4846122143138e (diff) | |
download | systemtap-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.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |