lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>> > * below is a program that screws up the internal Lua-Stack. Doesn't look
>> >   really dangerous, does it?
>
>Somewhere in the list (around May, I guess) there is a one-line patch
>for it.

See below. Like I said, this has already been fixed in 4.0b.

 From: Edgar Toernig <froese@gmx.de>
 Date: Thu, 08 Jun 2000 04:51:13 +0200
 Message-ID: <393F0A21.F0DF62CE@gmx.de>

 --- lparser.c.orig      Thu Jun  8 04:47:09 2000
 +++ lparser.c   Thu Jun  8 04:47:31 2000
 @@ -652,7 +652,7 @@
	  cd->k = 1;  /* record */
	}
	else {
 -        luaK_tostack(ls, &v, 0);
 +        luaK_tostack(ls, &v, 1);
	  cd->n = listfields(ls);
	  cd->k = 0;  /* list */
	}

--lhf