aboutsummaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-05-12 23:30:09 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-05-14 20:00:56 +0900
commit9fc7a2a1206d5bfe85dff9e01f8a102fb38d2153 (patch)
treef201d7e01bb935d09f43142d727b33611ab475b7 /pack.c
parentf2e3ad91380f799e1650c38b5bd6c24b7ed6fc5b (diff)
downloadruby-9fc7a2a1206d5bfe85dff9e01f8a102fb38d2153.tar.gz
ext/openssl: check argument type in OpenSSL::X509::Attribute#value=
The following code causes SEGV: OpenSSL::X509::Attribute.new("challengePassword", nil) * ext/openssl/ossl_x509attr.c (ossl_x509attr_set_value): check that the argument is an instance of OpenSSL::ASN1::Data, before ossl_asn1_get_asn1type(). * test/openssl/test_x509attr.rb: add tests
Diffstat (limited to 'pack.c')
0 files changed, 0 insertions, 0 deletions