W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

ORA-XQ-154-B: pushes that are never popped risk stack overflow

From: Stephen Buxton <Stephen.Buxton@oracle.com>
Date: 16 Feb 04 13:33:30
Message-Id: <200402162133.i1GLXU214777@rgmgw6.us.oracle.com>
To: public-qt-comments@w3.org

SECTION A.2.2: lexical rules

DEFAULT state table, fifth row, recognizes 
<"declare" "variable" "$">, changes state to VARNAME and 
pushes DEFAULT state on the stack.  In state VARNAME, 
after passing over comments, pragmas and must-knows, it
transitions to OPERATOR state.  The OPERATOR state table 
only does a popState() for input "}".  There are many
instances in which a variable name will not be followed by "}".
It is not evident that the DEFAULT state pushed on the stack will ever be popped.
Stack overflow appears to be a real danger.

- Steve B.
Received on Monday, 16 February 2004 16:34:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:17 UTC