diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-02-09 15:56:34 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-02-09 15:56:34 -0200 |
commit | ce74637ace147d147578a95c435cf7cafec590b8 (patch) | |
tree | d510203f6bb0342270ae9f0030926ab2b104526a | |
parent | 44be021309e1250bcef197537948514506ca8512 (diff) | |
download | lua-github-ce74637ace147d147578a95c435cf7cafec590b8.tar.gz |
bug: Chunk with too many lines can seg. fault
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 2.63.1.1 2013/04/12 18:48:47 roberto Exp roberto $ +** $Id: llex.c,v 2.63.1.2 2013/08/30 15:49:41 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -152,7 +152,7 @@ static void inclinenumber (LexState *ls) { if (currIsNewline(ls) && ls->current != old) next(ls); /* skip `\n\r' or `\r\n' */ if (++ls->linenumber >= MAX_INT) - luaX_syntaxerror(ls, "chunk has too many lines"); + lexerror(ls, "chunk has too many lines", 0); } |