Bug #53568 [Opn->Csd]: swapped memset arguments in ext/zip/lib/zip_dirent.c
| From: | cataphract@php.net | Date: | Fri, 17 Dec 2010 23:05:42 +0000 |
| Subject: | Bug #53568 [Opn->Csd]: swapped memset arguments in ext/zip/lib/zip_dirent.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157067@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53568&edit=1
ID: 53568
Updated by: cataphract@php.net
Reported by: crrodriguez at opensuse dot org
Summary: swapped memset arguments in ext/zip/lib/zip_dirent.c
-Status: Open
+Status: Closed
Type: Bug
Package: Zip Related
Operating System: all
PHP Version: 5.3SVN-2010-12-17 (SVN)
-Assigned To:
+Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-12-18 00:05:28] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=306416
Log: - Fixed bug #53568 (swapped memset arguments in struct
initialization).
------------------------------------------------------------------------
[2010-12-17 23:42:36] crrodriguez at opensuse dot org
Description:
------------
Swapped arguments in usage of memset
Test script:
---------------
--------
Expected result:
----------------
Index: ext/zip/lib/zip_dirent.c
===================================================================
--- ext/zip/lib/zip_dirent.c (revisión: 306414)
+++ ext/zip/lib/zip_dirent.c (copia de trabajo)
@@ -475,7 +475,7 @@
{
struct tm tm;
- memset(&tm, sizeof(tm), 0);
+ memset(&tm, 0, sizeof(tm));
/* let mktime decide if DST is in effect */
tm.tm_isdst = -1;
Actual result:
--------------
--------------
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53568&edit=1