Project

General

Profile

Bug #12428 » opensslcrash.rb

cjeon (CHEOLHO JEON), 05/25/2016 11:34 AM

 
puts(RUBY_VERSION)
# works well
require('openssl')
p = OpenSSL::PKey::RSA.new(1024)
p.public_encrypt('hi')
puts('works well when key size is given')

# crashes
require('openssl')
p = OpenSSL::PKey::RSA.new
puts('will crash when key size is not given')
p.public_encrypt('hi')

(3-3/3)