Actions
Bug #12428
closedOpenSSL::PKey::RSA.public_encrypt crashes ruby when initiated without key size.
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
Backport:
Description
Hi, I think I found a bug. OpenSSL::PKey::RSA initiated without keysize crashes when public_encrypt is called.
Below script will crash ruby (it is attached as opensslcrash.rb)
require('openssl')
p = OpenSSL::PKey::RSA.new
p.public_encrypt('hi')
I'm attaching error message(ruby opensslcrash.rb &> error_message.txt) and crash reports under /Users/CJeon/Library/Logs/DiagnosticReports.
Let me know if you guys need further information. Thanks!
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0