Skip to content

Conversation

primavera-dolce
Copy link

When a class static block ends at EOF (no trailing newline), the caller unconditionally consumed the next char after '}', causing a 1-byte OOB read in lexer_consume_next_character. Guard at the call site and raise the same parse error the next stage expects.

JerryScript-DCO-1.0-Signed-off-by: Harriet Zhu harrietzhu0115@gmail.com

PLEASE REMOVE THIS TEMPLATE BEFORE SUBMITTING

…ript-project#5254)

When a class static block ends at EOF (no trailing newline), the caller
unconditionally consumed the next char after '}', causing a 1-byte OOB read
in lexer_consume_next_character. Guard at the call site and raise the same
parse error the next stage expects.

JerryScript-DCO-1.0-Signed-off-by: Harriet Zhu harrietzhu0115@gmail.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant