[ruby-core:70746] [Ruby trunk - Bug #9101] Reference to unset variable

From: zzak@...
Date: 2015-09-13 03:10:58 UTC
List: ruby-core #70746
Issue #9101 has been updated by Zachary Scott.

Assignee changed from Martin Bosslet to openssl

----------------------------------------
Bug #9101: Reference to unset variable
https://bugs.ruby-lang.org/issues/9101#change-54125

* Author: Bertram Scharpf
* Status: Assigned
* Priority: Normal
* Assignee: openssl
* ruby -v: git revision e22d8781c8005b068ffa73ecc88728d720b6e870
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN
----------------------------------------
File ext/openssl/ossl.c

line 1107, in Init_openssl():  call to ossl_raise()
line 1112, in Init_openssl():  first assignment to dOSSL

  ossl_raise() calls ossl_make_error().
  ossl_make_error() uses the global variable dOSSL (line 310).

==> ossl_raise() was called before dOSSL was set.

This will probably never cause any misbehaviour, but
nevertheless, it's definitely a bug.


---Files--------------------------------
bs_fix_dossl.patch (1.45 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next