summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-08-21 15:51:23 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-08-21 15:51:23 -0400
commit8d22c6ad7250192dc526b2d9ca88b69901793e7b (patch)
treeffc452480dc7f10b8767c948283c411e6f3bf540
parent4b0eb1180bdebb0bd386f5f32e7e4c735e39c3bb (diff)
downloadsystemtap-steved-8d22c6ad7250192dc526b2d9ca88b69901793e7b.tar.gz
systemtap-steved-8d22c6ad7250192dc526b2d9ca88b69901793e7b.tar.xz
systemtap-steved-8d22c6ad7250192dc526b2d9ca88b69901793e7b.zip
pr4225: check for null incoming vm_path
-rw-r--r--tapsets.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index daf9d17b..409d909a 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -6886,7 +6886,7 @@ uprobe_derived_probe_group::emit_module_decls (systemtap_session& s)
// 1 - shared libraries' executable segments load from offset 0 - ld.so convention
s.op->newline() << "if (vm_pgoff != 0) return 0;";
// 2 - the shared library we're interested in
- s.op->newline() << "if (strcmp (vm_path, sups->pathname)) return 0;";
+ s.op->newline() << "if (vm_path == NULL || strcmp (vm_path, sups->pathname)) return 0;";
// 3 - probe address within the mapping limits; test should not fail
s.op->newline() << "if (vm_end >= sups->address) return 0;";
s.op->newline(0) << "return stap_uprobe_change (tsk, map_p, vm_start, sups);";