ext/coverage/coverage.c (rb_coverage_start): Ensure opt is a hash
opt
Ensure opt is a hash before using rb_hash_lookup to opt. This will prevent SEGV when an inappropriate object (i.e. an array) is passed to opt.
rb_hash_lookup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ext/coverage/coverage.c (rb_coverage_start): Ensure
opt
is a hashEnsure
opt
is a hash before usingrb_hash_lookup
toopt
.This will prevent SEGV when an inappropriate object (i.e. an array)
is passed to
opt
.git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e