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

Null pointer dereference #3495

Closed
clayton-shopify opened this issue Mar 9, 2017 · 1 comment
Closed

Null pointer dereference #3495

clayton-shopify opened this issue Mar 9, 2017 · 1 comment

Comments

@clayton-shopify
Copy link
Contributor

@clayton-shopify clayton-shopify commented Mar 9, 2017

The following input demonstrates a crash:

Hash.new{break}[0]
ASAN:DEADLYSIGNAL
=================================================================
==84356==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x00010d24859d bp 0x7fff52b26190 sp 0x7fff52b1e960 T0)
    #0 0x10d24859c in mrb_vm_exec vm.c:1251
    #1 0x10d23da69 in mrb_vm_run vm.c:822
    #2 0x10d26f519 in mrb_top_run vm.c:2581
    #3 0x10d33e005 in mrb_load_exec parse.y:5760
    #4 0x10d33ee15 in mrb_load_file_cxt parse.y:5769
    #5 0x10d0da776 in main mruby.c:227
    #6 0x7fffb4357254 in start (libdyld.dylib+0x5254)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV vm.c:1251 in mrb_vm_exec
==84356==ABORTING
Abort trap: 6

This issue was reported by https://hackerone.com/icanthack

@matz
Copy link
Member

@matz matz commented Mar 10, 2017

The issue is caused by #3359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants