Skip to content

Fix use-after-free in obj_free() for env objects - #6328

Merged
matz merged 1 commit into
mruby:masterfrom
dearblue:env-obj_free
Aug 28, 2024
Merged

Fix use-after-free in obj_free() for env objects#6328
matz merged 1 commit into
mruby:masterfrom
dearblue:env-obj_free

Conversation

@dearblue

Copy link
Copy Markdown
Contributor

A reference to an invalid address might occur in is_dead() of obj_free() called from incremental_sweep_phase().
This would happen if the heap page was freed ahead of time in the same incremental_sweep_phase().

fixed #6326

A reference to an invalid address might occur in `is_dead()` of `obj_free()` called from `incremental_sweep_phase()`.
This would happen if the heap page was freed ahead of time in the same `incremental_sweep_phase()`.

fixed mruby#6326
@dearblue
dearblue requested a review from matz as a code owner August 24, 2024 08:12
@github-actions github-actions Bot added the core label Aug 24, 2024
@matz
matz merged commit 6de3009 into mruby:master Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect “Use-after-free” with address sanitizer

2 participants