[ruby-cvs:62234] rhe:r55071 (trunk): openssl: check argument type in OpenSSL::X509::Attribute#value=

rhe at ruby-lang.org rhe at ruby-lang.org
Thu May 19 13:12:58 JST 2016


rhe	2016-05-19 13:12:57 +0900 (Thu, 19 May 2016)

  New Revision: 55071

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

  Log:
    openssl: check argument type in OpenSSL::X509::Attribute#value=
    
    * ext/openssl/ossl_x509attr.c (ossl_x509attr_set_value): check that the
      argument is an OpenSSL::ASN1::Data before converting to ASN1_TYPE.
      This fixes SEGV on OpenSSL::X509::Attribute#value=(non-asn1-value).
    
    * test/openssl/test_x509attr.rb: add tests for OpenSSL::X509::Attribute.

  Added files:
    trunk/test/openssl/test_x509attr.rb
  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/ossl_x509attr.c


More information about the ruby-cvs mailing list