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
Heap use-after-free in mrb_yield_with_class #3500
Comments
matz
added a commit
that referenced
this issue
Aug 19, 2020
matz
added a commit
that referenced
this issue
Aug 20, 2020
matz
added a commit
that referenced
this issue
Aug 31, 2020
matz
added a commit
that referenced
this issue
Sep 17, 2020
matz
added a commit
that referenced
this issue
Sep 18, 2020
matz
added a commit
that referenced
this issue
Sep 29, 2020
matz
added a commit
that referenced
this issue
Oct 14, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following input demonstrates a crash:
ASAN report:
This appears to happen because the
stack_extend
call inmrb_yield_with_class
(mruby/src/vm.c
Line 689 in ff262f2
argv
to be relocated. The old address ofargv
is then passed intostack_copy
here:mruby/src/vm.c
Line 694 in ff262f2
This issue was reported by https://hackerone.com/icanthack
The text was updated successfully, but these errors were encountered: