public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/11195] New: argument expansion needs better recursion protection
@ 2010-01-19 21:22 jistone at redhat dot com
  2010-01-19 22:19 ` [Bug translator/11195] " jistone at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: jistone at redhat dot com @ 2010-01-19 21:22 UTC (permalink / raw)
  To: systemtap

We do have some protection against argument recursion:

$ stap -p1 -e 'probe begin {$1}' '$1'
parse error: invalid nested substitution of command line arguments
	saw: operator '{' at <input>:1:13
     source: probe begin {$1}
                         ^
parse error: expected statement
	saw: <input> EOF
2 parse error(s).
Pass 1: parse failed.  Try again with another '--vp 1' option.


But it doesn't work if the recursion is not the first token:

$ stap -p1 -e 'probe begin {$1}' 'x $1'
(runs until OOM)

-- 
           Summary: argument expansion needs better recursion protection
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jistone at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11195

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/11195] argument expansion needs better recursion protection
  2010-01-19 21:22 [Bug translator/11195] New: argument expansion needs better recursion protection jistone at redhat dot com
@ 2010-01-19 22:19 ` jistone at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jistone at redhat dot com @ 2010-01-19 22:19 UTC (permalink / raw)
  To: systemtap



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|systemtap at sources dot    |jistone at redhat dot com
                   |redhat dot com              |
             Status|NEW                         |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=11195

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-19 22:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-19 21:22 [Bug translator/11195] New: argument expansion needs better recursion protection jistone at redhat dot com
2010-01-19 22:19 ` [Bug translator/11195] " jistone at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).