]> sourceware.org Git - systemtap.git/commitdiff
pr4225: check for null incoming vm_path
authorFrank Ch. Eigler <fche@elastic.org>
Thu, 21 Aug 2008 19:51:23 +0000 (15:51 -0400)
committerFrank Ch. Eigler <fche@elastic.org>
Thu, 21 Aug 2008 19:51:23 +0000 (15:51 -0400)
tapsets.cxx

index daf9d17b6f1209a2e20acf3b3e3a98321b416ef5..409d909a84a43c45025a398b2023820991a865e3 100644 (file)
@@ -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);";
This page took 0.031087 seconds and 5 git commands to generate.