Skip to content
Prev 10211 / 63424 Next

segmentation fault: formula() with long variable names (PR#3704)

On Thu, 7 Aug 2003 jerome@hivnet.ubc.ca wrote:

            
The problem seems to be in parse, which formula.default calls:
Segmentation fault (core dumped)

We were filling the yytext buffer in gram.y with no overflow checking.
I've added some checking in R-devel, so these now give
Error in parse(text = paste(rep("x", 50000), collapse = "")) : 
	input buffer overflow
Error in parse(text = x) : input buffer overflow

luke