Project

General

Profile

Actions

Bug #9771

closed

SYM2ID(Qnil)

Added by nobu (Nobuyoshi Nakada) almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
1.9.3 or later
[ruby-core:62142]

Description

ext/openssl/ossl_asn1.c:ossl_asn1_initialize() allows Qnil as tagging since r31699.
But SYM2ID() is defined for T_SYMBOL values only.

Updated by nobu (Nobuyoshi Nakada) almost 10 years ago

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

Applied in changeset r45701.


ossl_asn1.c: fix undefined behavior

  • ext/openssl/ossl_asn1.c (ossl_asn1_initialize): SYMID on a value
    other than Symbol is an undefined behavior. fix up r31699.
    [ruby-core:62142] [Bug #9771]

Updated by usa (Usaku NAKAMURA) almost 10 years ago

  • Backport changed from 2.0.0: REQUIRED, 2.1: REQUIRED to 2.0.0: DONE, 2.1: REQUIRED

backported into ruby_2_0_0 at r46200.

Updated by nagachika (Tomoyuki Chikanaga) almost 10 years ago

  • Backport changed from 2.0.0: DONE, 2.1: REQUIRED to 2.0.0: DONE, 2.1: DONE

r45701 was backported into ruby_2_1 branch at r46214.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0