diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-06 06:14:17 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-06 06:14:17 +0000 |
commit | a2b27485c1cb4014e41c366e6447382f414360ba (patch) | |
tree | 3ae1d5e5113a1ba19f6235d99991bb7b52e833f1 /debug.c | |
parent | 88311025872a66e746f552d94df23b1c1f2a06e7 (diff) | |
download | ruby-a2b27485c1cb4014e41c366e6447382f414360ba.tar.gz |
re.c: check that MatchData is initialized
Follow r16757 ("* re.c: fix SEGV by Regexp.allocate.names,
Match.allocate.names, etc.", 2008-06-02). Don't do null dereference if
MatchData#hash or #== is called against an uninitialized instance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug.c')
0 files changed, 0 insertions, 0 deletions