summaryrefslogtreecommitdiff
path: root/llex.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-22 14:35:20 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-11-22 14:35:20 -0200
commit04b143ddf931f5312209ddfc1d8d14ede6997afd (patch)
tree3a06772a43d0b966e62e0e96a1ff729f8db4f921 /llex.h
parent007f229568ec47a2b6659ef3049b9ed03ccac72d (diff)
downloadlua-04b143ddf931f5312209ddfc1d8d14ede6997afd.tar.gz
lua-04b143ddf931f5312209ddfc1d8d14ede6997afd.tar.bz2
lua-04b143ddf931f5312209ddfc1d8d14ede6997afd.zip
avoid C stack overflow during parsing
Diffstat (limited to 'llex.h')
-rw-r--r--llex.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llex.h b/llex.h
index d0e4216c..2df59d0b 100644
--- a/llex.h
+++ b/llex.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.h,v 1.44 2002/09/03 11:57:38 roberto Exp roberto $ 2** $Id: llex.h,v 1.45 2002/10/08 18:46:08 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -59,6 +59,7 @@ typedef struct LexState {
59 ZIO *z; /* input stream */ 59 ZIO *z; /* input stream */
60 Mbuffer *buff; /* buffer for tokens */ 60 Mbuffer *buff; /* buffer for tokens */
61 TString *source; /* current source name */ 61 TString *source; /* current source name */
62 int nestlevel; /* level of nested non-terminals */
62} LexState; 63} LexState;
63 64
64 65