File: 97uninit-crash.patch

package info (click to toggle)
speedy-cgi-perl 2.22-13
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,144 kB
  • ctags: 884
  • sloc: ansic: 4,487; perl: 958; sh: 806; makefile: 91
file content (15 lines) | stat: -rw-r--r-- 500 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Author: Niko Tyni <ntyni@debian.org>
Description: Closes: #537996
The SvIV call crashes in on Perl 5.10.0 when warnings are
enabled and the value is undef.
--- a/src/speedy_perl.c
+++ b/src/speedy_perl.c
@@ -818,7 +818,7 @@
     my_call_sv(get_perlvar(&PERLVAR_RESET_GLOBALS));
 
     /* Copy option values in from the perl vars */
-    if (SvIV(PERLVAL_OPTS_CHANGED)) {
+    if (SvTRUE(PERLVAL_OPTS_CHANGED)) {
 	int i;
 	for (i = 0; i < SPEEDY_NUMOPTS; ++i) {
 	    OptRec *o = speedy_optdefs + i;