]> sourceware.org Git - systemtap.git/commitdiff
tracepoint probes: ensure valid string given
authorJonathan Lebon <jlebon@redhat.com>
Fri, 19 Dec 2014 21:16:23 +0000 (16:16 -0500)
committerJonathan Lebon <jlebon@redhat.com>
Fri, 9 Jan 2015 16:41:44 +0000 (11:41 -0500)
tapsets.cxx

index 977bbca142bd0801d43650c77fb6e587f0b26999..03a359d7fccf8c6e6106632a3ee37737782ac8b0 100644 (file)
@@ -10903,6 +10903,10 @@ struct tracepoint_query : public base_query
         this->system = tracepoint.substr(0, sys_pos);
         this->tracepoint = tracepoint.substr(sys_pos+1);
       }
+
+    // make sure we have something to query (filters out e.g. "" and ":")
+    if (this->tracepoint.empty())
+      throw SEMANTIC_ERROR (_("invalid tracepoint string provided"));
   }
 };
 
This page took 0.603216 seconds and 5 git commands to generate.