From: usa@... Date: 2016-06-08T05:45:31+00:00 Subject: [ruby-core:75898] [Ruby trunk Bug#12428] OpenSSL::PKey::RSA.public_encrypt crashes ruby when initiated without key size. Issue #12428 has been updated by Usaku NAKAMURA. Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- Bug #12428: OpenSSL::PKey::RSA.public_encrypt crashes ruby when initiated without key size. https://bugs.ruby-lang.org/issues/12428#change-59079 * Author: CHEOLHO JEON * Status: Closed * Priority: Normal * Assignee: openssl * ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] * Backport: 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED ---------------------------------------- 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-------------------------------- error_message.txt (7.03 KB) crash.tar (149 KB) opensslcrash.rb (276 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: