diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-03 22:03:59 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-03 22:03:59 +0000 |
commit | 0c662b34313699223f08df54c5dcd8c481ff8a95 (patch) | |
tree | d6e0d9ae03e566e6f1b808590f957c20322bf79f /compile.c | |
parent | ddc4cd4ace2ebd80703faa32f35962762435a3ef (diff) | |
download | ruby-0c662b34313699223f08df54c5dcd8c481ff8a95.tar.gz |
iseq.c: avoid segfault on incomplete iseq
Compile failures will trigger iseq_free before
iseq->callinfo_entries are allocated at all.
* iseq.c (iseq_free): avoid segfault on incomplete iseq
* test/ruby/test_syntax.rb (test_invalid_next): new test
for syntax error, not segfault
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
0 files changed, 0 insertions, 0 deletions