From 8d22c6ad7250192dc526b2d9ca88b69901793e7b Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Thu, 21 Aug 2008 15:51:23 -0400 Subject: pr4225: check for null incoming vm_path --- tapsets.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tapsets.cxx') 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);"; -- cgit