summaryrefslogtreecommitdiffstats
path: root/testsuite/parseko/preprocess16.stp
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-01-19 15:36:35 -0800
committerJosh Stone <jistone@redhat.com>2010-01-19 17:01:35 -0800
commit9300f661214a4f4dfac75878485867b30c7db389 (patch)
tree7d1408669fb7bd5fa648edbbd33707a7e8b094d0 /testsuite/parseko/preprocess16.stp
parent596bbda30fd116c2d45c155ad347cc2d27186f3c (diff)
downloadsystemtap-steved-9300f661214a4f4dfac75878485867b30c7db389.tar.gz
systemtap-steved-9300f661214a4f4dfac75878485867b30c7db389.tar.xz
systemtap-steved-9300f661214a4f4dfac75878485867b30c7db389.zip
PR11195: Prevent all nested argument substitution
Our existing protection only made sure that the first token in a substitution wasn't a nested substitution. That's not sufficient when there could be multiple tokens involved. This patch makes sure that no nested tokens are ever allowed to be argument substitutions. This also adds a cursor_suspended_line/column and resets the main cursor_line/column to the beginning of the substitution, so errors will point a little closer to the right place.
Diffstat (limited to 'testsuite/parseko/preprocess16.stp')
-rwxr-xr-xtestsuite/parseko/preprocess16.stp4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/parseko/preprocess16.stp b/testsuite/parseko/preprocess16.stp
new file mode 100755
index 00000000..364bad6f
--- /dev/null
+++ b/testsuite/parseko/preprocess16.stp
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+# recursive after the first token (PR11195)
+stap -p1 -e 'probe begin {$1}' 'x $1'