-
Notifications
You must be signed in to change notification settings - Fork 782
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
Null pointer dereference in mrb_class #4036
Comments
A bisect suggests that the problem began in f408143. |
This issue was reported by Daniel Teuchert, Cornelius Aschermann, Tommaso Frassetto and Tigist Abera (https://hackerone.com/pnoltof) found an additional input that also began crashing in f408143: IndexError.clone.to_s.clone This input produces a crash on 64-bit macOS. ASAN report:
It seems likely the root cause is the same given that both inputs started producing a crash as of the same commit. |
Copying all flags from the original object may overwrite the clone's flags e.g. the embedded flag.
The following input demonstrates a crash:
Note that I was only able to reproduce this issue when building mruby on a 32-bit Linux system. (I used Ubuntu 16.04 for testing.) I could not reproduce on 64-bit Linux or 64-bit macOS.
Valgrind report:
This issue was reported by https://hackerone.com/flamezzz
The text was updated successfully, but these errors were encountered: