diff options
author | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-19 04:12:57 +0000 |
---|---|---|
committer | rhe <rhe@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-19 04:12:57 +0000 |
commit | 2e4211b3b04ac3463bc880239704e536b2d025fa (patch) | |
tree | 7240c70556e796ae63346f2a01570e449227f30c /man/goruby.1 | |
parent | 85794be29f60bf853a1a5e42d35496c69e5270c6 (diff) | |
download | ruby-2e4211b3b04ac3463bc880239704e536b2d025fa.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'man/goruby.1')
0 files changed, 0 insertions, 0 deletions