cvs: ZendEngine2(PHP_5_2) / zend_alloc.h

From: Date: Sun, 28 Jun 2009 09:47:42 +0000
Subject: cvs: ZendEngine2(PHP_5_2) / zend_alloc.h
Groups: php.zend-engine.cvs 
Request: Send a blank email to [email protected] to get a copy of this message
pajoye		Sun Jun 28 09:47:42 2009 UTC

  Modified files:              (Branch: PHP_5_2)
    /ZendEngine2	zend_alloc.h 
  Log:
  - calloc must actually clearing the requested size (Andrei)
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_alloc.h?r1=1.63.2.2.2.17&r2=1.63.2.2.2.18&diff_format=u
Index: ZendEngine2/zend_alloc.h
diff -u ZendEngine2/zend_alloc.h:1.63.2.2.2.17 ZendEngine2/zend_alloc.h:1.63.2.2.2.18
--- ZendEngine2/zend_alloc.h:1.63.2.2.2.17	Sun Jan 25 13:42:39 2009
+++ ZendEngine2/zend_alloc.h	Sun Jun 28 09:47:42 2009
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend_alloc.h,v 1.63.2.2.2.17 2009/01/25 13:42:39 dsp Exp $ */
+/* $Id: zend_alloc.h,v 1.63.2.2.2.18 2009/06/28 09:47:42 pajoye Exp $ */
 
 #ifndef ZEND_ALLOC_H
 #define ZEND_ALLOC_H
@@ -89,7 +89,7 @@
 inline static void * __zend_calloc(size_t nmemb, size_t len)
 {
 	void *tmp = _safe_malloc(nmemb, len, 0);
-	memset(tmp, 0, len);
+	memset(tmp, 0, nmemb * len);
 	return tmp;
 }
 




Thread (1 message)

  • Pierre-Alain Joye
« previous php.zend-engine.cvs (#7698) next »