From: strk <st...@ke...> - 2009-01-08 13:25:45
|
On Thu, Jan 08, 2009 at 01:57:52PM +0100, Michael Fötsch wrote: > Hi, > > In ming 0.4.2, the count() function in src\swf5compiler.flex causes a > buffer overflow for input lines longer than 1023 characters (which leads > to a segmentation fault in the Gnash test suite). Which file of the gnash test suite please ? > Here's a patch: > > --- swf5compiler-0.4.2.flex 2008-07-13 16:09:56.000000000 +0200 > +++ swf5compiler.flex 2009-01-08 13:31:30.000000000 +0100 > @@ -572,7 +572,7 @@ > if(column < 1023) > msgline[column] = yytext[n]; > } > - msgline[column] = 0; > + msgline[column < 1023 ? column : 1023] = 0; > } Does this truncate the line ? --strk; GIS & Flash consultant/developer () ASCII Ribbon Campaign http://foo.keybit.net/~strk/services.html /\ Keep it simple! |