Skip to content
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

Correct release of spread arguments #3867

Merged
merged 1 commit into from Jun 6, 2020

Conversation

galpeter
Copy link
Contributor

@galpeter galpeter commented Jun 5, 2020

During the opfunc_spread_arguments argument release process
the stack pointer was incremented early resulting in a state where
one of the arguments was not freed causing a memory leak.

Fixes: #3860
Fixes: #3859
Fixes: #3858

During the `opfunc_spread_arguments` argument release process
the stack pointer was incremented early resulting in a state where
one of the arguments was not freed causing a memory leak.

JerryScript-DCO-1.0-Signed-off-by: Peter Gal pgal.usz@partner.samsung.com
@galpeter galpeter added bug Undesired behaviour ecma core Related to core ECMA functionality ES2015 Related to ES2015 features labels Jun 5, 2020
@galpeter galpeter requested a review from rerobika June 5, 2020 14:19
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

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

@zherczeg zherczeg merged commit ba4e3a4 into jerryscript-project:master Jun 6, 2020
rzr added a commit to TizenTeam/iotjs that referenced this pull request Oct 15, 2020
Forwarded: https://github.com/jerryscript-project/iotjs/pulls/rzr
Relate-to: jerryscript-project/jerryscript#3867
Change-Id: I54dde024b25098387b33b7c1150df544c40fb36b
IoT.js-DCO-1.0-Signed-off-by: Philippe Coval <rzr@users.sf.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour ecma core Related to core ECMA functionality ES2015 Related to ES2015 features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SIGABRT in jerry_port_fatal SEGV in jmem_pools_finalize SEGV in ecma_deref_ecma_string
3 participants