From 9300f661214a4f4dfac75878485867b30c7db389 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 19 Jan 2010 15:36:35 -0800 Subject: 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. --- testsuite/parseko/preprocess16.stp | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 testsuite/parseko/preprocess16.stp (limited to 'testsuite/parseko') 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' -- cgit From 01fdcd403fc7167cbb31da85f0bf0af523f3bdf1 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 19 Jan 2010 17:04:15 -0800 Subject: chmod +x testsuite/parseko/conditional.stp --- testsuite/parseko/conditional.stp | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 testsuite/parseko/conditional.stp (limited to 'testsuite/parseko') diff --git a/testsuite/parseko/conditional.stp b/testsuite/parseko/conditional.stp old mode 100644 new mode 100755 -- cgit