Browse Source

- MF52: calloc must actually clear the requested size (Andrei)

experimental/5.3-FPM
Pierre Joye 17 years ago
parent
commit
25c47a2522
  1. 2
      Zend/zend_alloc.h

2
Zend/zend_alloc.h

@ -89,7 +89,7 @@ inline static void * __zend_malloc(size_t len)
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;
}

Loading…
Cancel
Save