com php-src: 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.: ext/zip/lib/zip_source_error.c
| From: | Rasmus Lerdorf | Date: | Mon, 21 Oct 2013 05:15:35 +0000 |
| Subject: | com php-src: 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.: ext/zip/lib/zip_source_error.c |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73750@lists.php.net to get a copy of this message | ||
Commit: 2186e1583d9d65d0e79d05ec706f1e12b97bb035
Author: Rasmus Lerdorf <rasmus@lerdorf.com> Sun, 20 Oct 2013 22:15:35 -0700
Parents: 18cc5386de399f4410d8e5bf0a7aa5a06b0309be
Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2186e1583d9d65d0e79d05ec706f1e12b97bb035
Log:
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.
Changed paths:
M ext/zip/lib/zip_source_error.c
Diff:
diff --git a/ext/zip/lib/zip_source_error.c b/ext/zip/lib/zip_source_error.c
index ffb4652..70ec8bc 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) {
}