[ruby-cvs:67093] yui-knk:r59915 (trunk): ext/coverage/coverage.c (rb_coverage_start): Ensure `opt` is a hash

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Fri Sep 15 09:40:38 JST 2017


yui-knk	2017-09-15 09:40:38 +0900 (Fri, 15 Sep 2017)

  New Revision: 59915

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59915

  Log:
    ext/coverage/coverage.c (rb_coverage_start): Ensure `opt` is a hash
    
    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`.

  Modified files:
    trunk/ext/coverage/coverage.c


More information about the ruby-cvs mailing list