Skip to content

Conversation

matetokodi
Copy link
Contributor

Raise syntax error on invalid unicode escape sequences instead of failing with an assertion

The parser context was required for raising the error, which had to be added to all functions that can call lexer_unchecked_hex_to_character.

This fixes #5134

@zherczeg
Copy link
Member

This patch adds a lot of extra operations. I am thinking why this was not needed before, how we handled this in other cases.

JerryScript-DCO-1.0-Signed-off-by: Máté Tokodi mate.tokodi@szteszoftver.hu
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.

Heap-Buffer-Overflow in lexer_convert_ident_to_cesu8 /jerryscript/jerry-core/parser/js/js-lexer.c:2083:9
2 participants