diff options
Diffstat (limited to 'dev-perl/SpeedyCGI/files/SpeedyCGI-2.22-uninit-crash.patch')
-rw-r--r-- | dev-perl/SpeedyCGI/files/SpeedyCGI-2.22-uninit-crash.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-perl/SpeedyCGI/files/SpeedyCGI-2.22-uninit-crash.patch b/dev-perl/SpeedyCGI/files/SpeedyCGI-2.22-uninit-crash.patch new file mode 100644 index 000000000000..767fb8de8fe6 --- /dev/null +++ b/dev-perl/SpeedyCGI/files/SpeedyCGI-2.22-uninit-crash.patch @@ -0,0 +1,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; |