From: Rasmus Lerdorf Date: Mon, 21 Oct 2013 05:15:35 +0000 (-0700) Subject: When src->src is null this doesn't get initialized X-Git-Tag: php-5.5.6RC1~5^2~10^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2186e1583d9d65d0e79d05ec706f1e12b97bb035;p=php When src->src is null this doesn't get initialized but it is still used, so the passed in *ze will point to unitialized memory. Hopefully src->src is never null, but just in case this initialization doesn't hurt. --- diff --git a/ext/zip/lib/zip_source_error.c b/ext/zip/lib/zip_source_error.c index ffb4652d33..70ec8bc5d4 100644 --- a/ext/zip/lib/zip_source_error.c +++ b/ext/zip/lib/zip_source_error.c @@ -40,7 +40,7 @@ ZIP_EXTERN(void) zip_source_error(struct zip_source *src, int *ze, int *se) { - int e[2]; + int e[2] = { 0, 0 }; if (src->src == NULL) { }