Skip to content

Conversation

@mnegyokru
Copy link
Contributor

…rees before exiting execution

This patch fixes #4870.

JerryScript-DCO-1.0-Signed-off-by: Martin Negyokru [email protected]

…rees before exiting execution

This patch fixes jerryscript-project#4870.

JerryScript-DCO-1.0-Signed-off-by: Martin Negyokru [email protected]

ecma_ref_if_object (executable_object_p->frame_ctx.this_binding);
ecma_value_t result = vm_execute (&executable_object_p->frame_ctx);
ecma_deref_if_object (executable_object_p->frame_ctx.this_binding);
Copy link
Member

Choose a reason for hiding this comment

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

Is it okay to release if executable_object_p->frame_ctx.call_operation == VM_EXEC_RETURN? I think both the ref/and deref should be placed next to executable_object_p->iterator ref/deref.

@LaszloLango LaszloLango added the abandoned Abandoned by reviewers or author label Nov 13, 2024
gergocs added a commit to gergocs/jerryscript that referenced this pull request Nov 19, 2024
…rees before exiting execution

This patch fixes jerryscript-project#4870.

The implementation is based on PR jerryscript-project#4966, only resolved the conflicts
and applied requested changes.

Co-authored-by: Martin Negyokru [email protected]
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
gergocs added a commit to gergocs/jerryscript that referenced this pull request Nov 19, 2024
…rees before exiting execution

This patch fixes jerryscript-project#4870.

The implementation is based on PR jerryscript-project#4966, only resolved the conflicts
and applied requested changes.

Co-authored-by: Martin Negyokru [email protected]
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
gergocs added a commit to gergocs/jerryscript that referenced this pull request Nov 19, 2024
…rees before exiting execution

This patch fixes jerryscript-project#4870.

The implementation is based on PR jerryscript-project#4966, only resolved the conflicts
and applied requested changes.

Co-authored-by: Martin Negyokru [email protected]
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
robertsipka pushed a commit that referenced this pull request Nov 19, 2024
#5169)

…rees before exiting execution

This patch fixes #4870.

The implementation is based on PR #4966, only resolved the conflicts
and applied requested changes.

Co-authored-by: Martin Negyokru [email protected]
JerryScript-DCO-1.0-Signed-off-by: Gergo Csizi [email protected]
@robertsipka
Copy link
Contributor

Closing this PR, due it has been taken over and merged via PR5169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

abandoned Abandoned by reviewers or author

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AddressSanitizer: heap-use-after-free jerry-core/ecma/base/ecma-gc.c:90 in ecma_gc_set_object_visited

4 participants