-
Notifications
You must be signed in to change notification settings - Fork 677
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
Fix error handling in scanner in case of OOM #3793
Fix error handling in scanner in case of OOM #3793
Conversation
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.
LGTM
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.
I would like to understand what is happening here exactly.
889b576
to
f198b39
Compare
The patch is updated. The related testcases in the issues cannot be added since there is no way to ensure that the OOM happens in the scanner not elsewhere in the engine. |
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.
Much better. Just a few things.
f198b39
to
f8cca5a
Compare
@zherczeg Thanks for the review, the PR is updated. |
I have been thinking about an alternative for this patch, which does not require a separate free function. It would look like this:
What do you think? I can do it in a separate patch if you wish. |
f8cca5a
to
2de1838
Compare
+1 for the separate patch! |
This patch fixes jerryscript-project#3786 and fixes jerryscript-project#3788. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
2de1838
to
b4873d0
Compare
@zherczeg I've updated the PR with the suggested code above. |
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.
LGTM
Much better!
This patch fixes #3786 and fixes #3788.
JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]