Project

General

Profile

Actions

Bug #6102

closed

Crash when calling OpenSSL::Integer#to_der with nil value

Added by MartinBosslet (Martin Bosslet) over 12 years ago. Updated over 12 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3dev (2011-09-24 revision 33322) [i686-linux]
Backport:
[ruby-core:43009]

Description

ruby -ropenssl -e 'OpenSSL::Integer.new(nil).to_der'

crashes.

Actions #1

Updated by Anonymous over 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r35159.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • ext/openssl/ossl_asn1.c: raise TypeError when trying to encode nil
    values for Primitive instances.
  • test/openssl/test_asn1.rb: Assert consistent behavior when
    encoding nil values: Primitives raise TypeError, Constructives
    raise NoMethodError.
    Fixes [ruby-core:43009][Bug #6102]
    -This line, and those below, will be ignored--

M test/openssl/test_asn1.rb
M ext/openssl/ossl_asn1.c
M ChangeLog

Actions

Also available in: Atom PDF

Like0
Like0