[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: possible bug in lua.c main report lua_tostring malloc
- From: David Manura <dm.lua@...>
- Date: Tue, 11 Aug 2009 00:27:16 -0400
On Mon, Aug 10, 2009 at 12:23 PM, Roberto Ierusalimschy wrote:
>> In Lua 5.1.4, in lua.h:main, the call to "report" invokes
>> lua_tostring, which according to the Lua Reference Manual may raise a
>> memory error, presumably in the condition where the error value is a
>> number that must be translated into a string and therefore allocate
>> memory for the string. In this context, the call to lua_tostring is
>> unprotected.
>>
>> [...]
>
> Just a small detail: By "crash" you mean a panicked exit, right?
That is, panicked exit. I suspected some condition might cause one to
occur here, but I didn't find one.
(I also referred to a real crash, but as noted in my second post, that
was due instead to an error in my patch.)