Skip to content
Permalink
Browse files

Fix stack overflow if interpreting a file full of '{' (fix #1448)

  • Loading branch information
gfwilliams committed May 28, 2018
1 parent ca13e4d commit 51380baf17241728b6d48cdb84140b931e3e3cc5
Showing with 2 additions and 0 deletions.
  1. +1 −0 ChangeLog
  2. +1 −0 src/jsparse.c
@@ -8,6 +8,7 @@
Add for(var i of array) to iterate over elements
Added getter and setter support
Stop parsing blocks if not executing (fix #572)
Fix stack overflow if interpreting a file full of '{' (fix #1448)

1v99 : Increase jslMatch error buffer size to handle "UNFINISHED TEMPLATE LITERAL" string (#1426)
nRF5x: Make FlashWrite cope with flash writes > 4k
@@ -2720,6 +2720,7 @@ NO_INLINE JsVar *jspeStatement() {
return jspeExpression();
} else if (lex->tk=='{') {
/* A block of code */
if (!jspCheckStackPosition()) return 0;
jspeBlock();
return 0;
} else if (lex->tk==';') {

0 comments on commit 51380ba

Please sign in to comment.
You can’t perform that action at this time.