From 7bed8becd94f6aa5ebfcfdfbc4da8ff44b274454 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Fri, 19 Dec 2014 16:16:23 -0500 Subject: [PATCH] tracepoint probes: ensure valid string given --- tapsets.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tapsets.cxx b/tapsets.cxx index 977bbca14..03a359d7f 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -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")); } }; -- 2.43.5