topazproject / topaz

A high performance ruby, written in RPython
topazruby.com
BSD 3-Clause "New" or "Revised" License
1k stars 84 forks source link

Guard uninitialized Regexp#match from segfault #851

Closed kachick closed 8 years ago

kachick commented 8 years ago
$ bin/topaz -e 'Regexp.allocate.match ""'
[1]    1202 segmentation fault  bin/topaz -e 'Regexp.allocate.match ""'
alex commented 8 years ago

The right fix here is to initialize source to None

kachick commented 8 years ago

@alex You're right. I have added patches to switch way.