Skip to content

Fix releasing the pattern string in regexp #3765

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

Merged
merged 1 commit into from
May 20, 2020

Conversation

galpeter
Copy link
Contributor

@galpeter galpeter commented May 19, 2020

The release of the regexp pattern string during creating
was incorrect as it was dereferenced a bit to early.

Fixes: #3748
Fixes: #3749

The release of the regexp pattern string during creating
was incorrect as it was dereferenced a bit to early.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
@galpeter galpeter added the bug Undesired behaviour label May 19, 2020
Copy link
Member

@rerobika rerobika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@dbatyai dbatyai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dbatyai dbatyai merged commit bbb5c91 into jerryscript-project:master May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

heap-buffer-overflow in the jmem_pools_collect_empty heap-use-after-free in the ecma_ref_ecma_string
3 participants