Skip to content

Commit

Permalink
fix: eof causing heap overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jumanji144 committed Jul 28, 2024
1 parent 511cdb4 commit 9712867
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ private Pair<List<ASTComment>, Collection<Token>> filterComments(Collection<Toke
// it is an object if they there will be a : after the identifier
Token peek = ctx.peek(2);
if (peek == null) {
ctx.takeAny();
ctx.throwEofError(":, } or ,");
return null;
}
Expand Down

0 comments on commit 9712867

Please sign in to comment.