Project

General

Profile

Bug #9771

SYM2ID(Qnil)

Added by nobu (Nobuyoshi Nakada) about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
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) about 6 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) about 6 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) about 6 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.

Also available in: Atom PDF