[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua 5.1.3 with LNUM - access violation when a comment is present
- From: "Aaron Saarela" <Aaron.Saarela@...>
- Date: Wed, 14 Jan 2009 16:34:47 -0500
I’m using Lua 5.1.3 with the LNUM patch applied. We’re using the following
defines: LUA_USELONGLONG, LNUM_DOUBLE, LNUM_INT64.
Everything has been going great for months now but a user as reported an
error that has my stumped. He added a multiline comment to one of his lua
files. Now when the application tries to call this function we get an access
violation error at the very next line (when calling luaH_getint). Looking at
luaH_getint the table being passed in is null for some reason. The line
that’s dying:
if (cast(unsigned int, key-1) < cast(unsigned int, t->sizearray)) <--
t is null here
Remove the multiline comment and everything runs fine. Change the comment
from a multiple line comment to single-line comments and everything works
fine. If I try this comment in another Lua file everything works fine.
I’m guessing we’re hitting some sort of corner case during parsing but I
can’t figure out what it is. I’m hoping someone has seen this and might
recommend a fix?
Regards,
-Aaron