summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-01-11 20:55:06 +0000
committerFelipe Pena <felipe@php.net>2011-01-11 20:55:06 +0000
commitb85380f7d02d811c67fc64eb67bdc3da1d095d9b (patch)
tree62ca0b8574ff93d3412ca883104e68546ae12449
parent92f7256ef1ba52c5c021efb72bc90fa190879402 (diff)
downloadphp-git-b85380f7d02d811c67fc64eb67bdc3da1d095d9b.tar.gz
- Fixed bug #53568 (swapped memset arguments in struct initialization) [backported]
-rw-r--r--NEWS2
-rw-r--r--ext/zip/lib/zip_dirent.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index b4ca858d39..523ffa04b8 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 5.2.18
- Fixed bug #53682 (Fix compile on the VAX). (Rasmus, jklos)
+- Fixed bug #53568 (swapped memset arguments in struct initialization).
+ (crrodriguez at opensuse dot org)
06 Jan 2010, PHP 5.2.17
- Fixed Bug #53632 (infinite loop with x87 fpu). (CVE-2010-4645) (Scott,
diff --git a/ext/zip/lib/zip_dirent.c b/ext/zip/lib/zip_dirent.c
index 39fcb6f62d..28cc2005d7 100644
--- a/ext/zip/lib/zip_dirent.c
+++ b/ext/zip/lib/zip_dirent.c
@@ -473,9 +473,7 @@ _zip_dirent_write(struct zip_dirent *zde, FILE *fp, int localp,
static time_t
_zip_d2u_time(int dtime, int ddate)
{
- struct tm tm;
-
- memset(&tm, sizeof(tm), 0);
+ struct tm tm = {0};
/* let mktime decide if DST is in effect */
tm.tm_isdst = -1;