Actions
Bug #9101
closedReference to unset variable
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
git revision e22d8781c8005b068ffa73ecc88728d720b6e870
Backport:
Description
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
Updated by BertramScharpf (Bertram Scharpf) almost 11 years ago
Reminder: Not one single reaction for ten days.
Updated by BertramScharpf (Bertram Scharpf) almost 11 years ago
Reminder: Not one single reaction in more than two weeks.
Updated by luislavena (Luis Lavena) almost 11 years ago
- Status changed from Open to Assigned
- Assignee set to MartinBosslet (Martin Bosslet)
Updated by zzak (zzak _) about 9 years ago
- Assignee changed from MartinBosslet (Martin Bosslet) to 7150
Updated by Anonymous over 8 years ago
- Status changed from Assigned to Closed
Applied in changeset r55135.
openssl: Avoid reference to unset global variable in Init_openssl()
- ext/openssl/ossl.c (Init_openssl): Avoid reference to unset global
variable. ossl_raise() may be called before dOSSL is set. Since
global variables default to 0 and the default value of dOSSL set in
Init_openssl() is also Qfalse, there is no real issue but confusing.
Patch by Bertram Scharpf software@bertram-scharpf.de
[ruby-core:58264] [Bug #9101]
Actions
Like0
Like0Like0Like0Like0Like0