Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#131 yy_top_state crashes on INITIAL state

2.5.35
open
nobody
5
2011-12-20
2011-12-20
No

yy_top_state crashes when called in state INITIAL!

Version: flex 2.5.35
Machine: SunOS dts06 5.9 Generic_112233-12 sun4u sparc SUNW,Sun-Blade-1500

static int yy_top_state (void)
{
return (yy_start_stack)[(yy_start_stack_ptr) - 1];
}

Code should protect against:
yy_start_stack_ptr = 0 or (yy_start_stack)[ -1 ];

Discussion