-
Couldn't load subscription status.
- Fork 687
Fix: avoid 1B OOB read at EOF after class static block (Fixes #5254) #5261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -857,8 +857,15 @@ parser_parse_class_body (parser_context_t *context_p, /**< context */ | |||||||||||
|
|
||||||||||||
| parser_stack_push (context_p, &range.start_location, sizeof (scanner_location_t)); | ||||||||||||
| fields_size += sizeof (scanner_location_t); | ||||||||||||
|
|
||||||||||||
| lexer_consume_next_character (context_p); | ||||||||||||
|
|
||||||||||||
| if (JERRY_UNLIKELY(context_p->source_p >= context_p->source_end_p)) | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| { | ||||||||||||
| parser_raise_error (context_p, PARSER_ERR_PROPERTY_IDENTIFIER_EXPECTED); | ||||||||||||
| } | ||||||||||||
| else | ||||||||||||
| { | ||||||||||||
| lexer_consume_next_character (context_p); | ||||||||||||
| } | ||||||||||||
|
Comment on lines
+865
to
+868
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe we don't need
Suggested change
|
||||||||||||
| } | ||||||||||||
| else if (lexer_consume_assign (context_p)) | ||||||||||||
| { | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.