nmemb            2463 Zend/zend_alloc.c static inline size_t safe_address(size_t nmemb, size_t size, size_t offset)
nmemb            2465 Zend/zend_alloc.c 	size_t res = nmemb;
nmemb            2475 Zend/zend_alloc.c 		zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
nmemb            2483 Zend/zend_alloc.c static inline size_t safe_address(size_t nmemb, size_t size, size_t offset)
nmemb            2485 Zend/zend_alloc.c         size_t res = nmemb;
nmemb            2504 Zend/zend_alloc.c                 zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
nmemb            2512 Zend/zend_alloc.c static inline size_t safe_address(size_t nmemb, size_t size, size_t offset)
nmemb            2519 Zend/zend_alloc.c              : "r"(nmemb),
nmemb            2525 Zend/zend_alloc.c                 zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
nmemb            2533 Zend/zend_alloc.c static inline size_t safe_address(size_t nmemb, size_t size, size_t offset)
nmemb            2540 Zend/zend_alloc.c              : "r"(nmemb),
nmemb            2545 Zend/zend_alloc.c                 zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
nmemb            2553 Zend/zend_alloc.c static inline size_t safe_address(size_t nmemb, size_t size, size_t offset)
nmemb            2555 Zend/zend_alloc.c 	zend_ulong64 res = (zend_ulong64)nmemb * (zend_ulong64)size + (zend_ulong64)offset;
nmemb            2558 Zend/zend_alloc.c 		zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
nmemb            2566 Zend/zend_alloc.c static inline size_t safe_address(size_t nmemb, size_t size, size_t offset)
nmemb            2568 Zend/zend_alloc.c 	size_t res = nmemb * size + offset;
nmemb            2569 Zend/zend_alloc.c 	double _d  = (double)nmemb * (double)size + (double)offset;
nmemb            2573 Zend/zend_alloc.c 		zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset);
nmemb            2581 Zend/zend_alloc.c ZEND_API void *_safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
nmemb            2583 Zend/zend_alloc.c 	return emalloc_rel(safe_address(nmemb, size, offset));
nmemb            2586 Zend/zend_alloc.c ZEND_API void *_safe_malloc(size_t nmemb, size_t size, size_t offset)
nmemb            2588 Zend/zend_alloc.c 	return pemalloc(safe_address(nmemb, size, offset), 1);
nmemb            2591 Zend/zend_alloc.c ZEND_API void *_safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
nmemb            2593 Zend/zend_alloc.c 	return erealloc_rel(ptr, safe_address(nmemb, size, offset));
nmemb            2596 Zend/zend_alloc.c ZEND_API void *_safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset)
nmemb            2598 Zend/zend_alloc.c 	return perealloc(ptr, safe_address(nmemb, size, offset), 1);
nmemb            2602 Zend/zend_alloc.c ZEND_API void *_ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC)
nmemb            2610 Zend/zend_alloc.c 	p = _safe_emalloc(nmemb, size, 0 ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
nmemb            2615 Zend/zend_alloc.c 	memset(p, 0, size * nmemb);
nmemb              58 Zend/zend_alloc.h ZEND_API void *_safe_emalloc(size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC;
nmemb              59 Zend/zend_alloc.h ZEND_API void *_safe_malloc(size_t nmemb, size_t size, size_t offset) ZEND_ATTRIBUTE_MALLOC;
nmemb              61 Zend/zend_alloc.h ZEND_API void *_ecalloc(size_t nmemb, size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) ZEND_ATTRIBUTE_MALLOC ZEND_ATTRIBUTE_ALLOC_SIZE2(1,2);
nmemb              63 Zend/zend_alloc.h ZEND_API void *_safe_erealloc(void *ptr, size_t nmemb, size_t size, size_t offset ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC);
nmemb              64 Zend/zend_alloc.h ZEND_API void *_safe_realloc(void *ptr, size_t nmemb, size_t size, size_t offset);
nmemb              71 Zend/zend_alloc.h #define safe_emalloc(nmemb, size, offset)	_safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
nmemb              73 Zend/zend_alloc.h #define ecalloc(nmemb, size)				_ecalloc((nmemb), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
nmemb              75 Zend/zend_alloc.h #define safe_erealloc(ptr, nmemb, size, offset)	_safe_erealloc((ptr), (nmemb), (size), (offset) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
nmemb              83 Zend/zend_alloc.h #define safe_emalloc_rel(nmemb, size, offset)	_safe_emalloc((nmemb), (size), (offset) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
nmemb              85 Zend/zend_alloc.h #define ecalloc_rel(nmemb, size)				_ecalloc((nmemb), (size) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
nmemb              88 Zend/zend_alloc.h #define safe_erealloc_rel(ptr, nmemb, size, offset)	_safe_erealloc((ptr), (nmemb), (size), (offset) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_CC)
nmemb             103 Zend/zend_alloc.h inline static void * __zend_calloc(size_t nmemb, size_t len)
nmemb             105 Zend/zend_alloc.h 	void *tmp = _safe_malloc(nmemb, len, 0);
nmemb             106 Zend/zend_alloc.h 	memset(tmp, 0, nmemb * len);
nmemb             123 Zend/zend_alloc.h #define safe_pemalloc(nmemb, size, offset, persistent)	((persistent)?_safe_malloc(nmemb, size, offset):safe_emalloc(nmemb, size, offset))
nmemb             125 Zend/zend_alloc.h #define pecalloc(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc((nmemb), (size)))
nmemb             127 Zend/zend_alloc.h #define safe_perealloc(ptr, nmemb, size, offset, persistent)	((persistent)?_safe_realloc((ptr), (nmemb), (size), (offset)):safe_erealloc((ptr), (nmemb), (size), (offset)))
nmemb             134 Zend/zend_alloc.h #define pecalloc_rel(nmemb, size, persistent) ((persistent)?__zend_calloc((nmemb), (size)):ecalloc_rel((nmemb), (size)))
nmemb              57 Zend/zend_qsort.c ZEND_API void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare, void *arg TSRMLS_DC)
nmemb              70 Zend/zend_qsort.c 	end_stack[0]   = (char *) base + ((nmemb - 1) * siz);
nmemb             121 Zend/zend_qsort.c ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC)
nmemb             123 Zend/zend_qsort.c 	zend_qsort_r(base, nmemb, siz, (compare_r_func_t)compare, NULL TSRMLS_CC);
nmemb              26 Zend/zend_qsort.h ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC);
nmemb              27 Zend/zend_qsort.h ZEND_API void zend_qsort_r(void *base, size_t nmemb, size_t siz, compare_r_func_t compare, void *arg TSRMLS_DC);
nmemb            1287 ext/curl/interface.c static size_t curl_write_nothing(char *data, size_t size, size_t nmemb, void *ctx)
nmemb            1289 ext/curl/interface.c 	return size * nmemb;
nmemb            1295 ext/curl/interface.c static size_t curl_write(char *data, size_t size, size_t nmemb, void *ctx)
nmemb            1299 ext/curl/interface.c 	size_t          length = size * nmemb;
nmemb            1304 ext/curl/interface.c 	fprintf(stderr, "data = %s, size = %d, nmemb = %d, ctx = %x\n", data, size, nmemb, ctx);
nmemb            1312 ext/curl/interface.c 			return fwrite(data, size, nmemb, t->fp);
nmemb            1520 ext/curl/interface.c static size_t curl_read(char *data, size_t size, size_t nmemb, void *ctx)
nmemb            1529 ext/curl/interface.c 				length = fread(data, size, nmemb, t->fp);
nmemb            1550 ext/curl/interface.c 			ZVAL_LONG(zlength, (int) size * nmemb);
nmemb            1577 ext/curl/interface.c 					length = MIN((int) (size * nmemb), Z_STRLEN_P(retval_ptr));
nmemb            1596 ext/curl/interface.c static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx)
nmemb            1600 ext/curl/interface.c 	size_t          length = size * nmemb;
nmemb            1614 ext/curl/interface.c 			return fwrite(data, size, nmemb, t->fp);
nmemb              15 ext/gd/libgd/gdhelpers.h #define gdCalloc(nmemb, size)	ecalloc(nmemb, size)
nmemb             160 ext/mysqlnd/mysqlnd_alloc.c void * _mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D)
nmemb             181 ext/mysqlnd/mysqlnd_alloc.c 		ret = _ecalloc(nmemb, REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
nmemb             201 ext/mysqlnd/mysqlnd_alloc.c void * _mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D)
nmemb             220 ext/mysqlnd/mysqlnd_alloc.c 		ret = (persistent) ? __zend_calloc(nmemb, REAL_SIZE(size)) : _ecalloc(nmemb, REAL_SIZE(size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_ORIG_RELAY_CC);
nmemb             430 ext/mysqlnd/mysqlnd_alloc.c void * _mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D)
nmemb             450 ext/mysqlnd/mysqlnd_alloc.c 		ret = calloc(nmemb, REAL_SIZE(size));
nmemb             663 ext/mysqlnd/mysqlnd_alloc.c static void * mysqlnd_zend_mm_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D)
nmemb             665 ext/mysqlnd/mysqlnd_alloc.c 	return ecalloc(nmemb, size);
nmemb             671 ext/mysqlnd/mysqlnd_alloc.c static void * mysqlnd_zend_mm_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D)
nmemb             673 ext/mysqlnd/mysqlnd_alloc.c 	return pecalloc(nmemb, size, persistent);
nmemb             719 ext/mysqlnd/mysqlnd_alloc.c static void * mysqlnd_zend_mm_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D)
nmemb             721 ext/mysqlnd/mysqlnd_alloc.c 	return calloc(nmemb, size);
nmemb              36 ext/mysqlnd/mysqlnd_alloc.h 	void *	(*m_ecalloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
nmemb              37 ext/mysqlnd/mysqlnd_alloc.h 	void *	(*m_pecalloc)(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
nmemb              43 ext/mysqlnd/mysqlnd_alloc.h 	void *	(*m_calloc)(unsigned int nmemb, size_t size MYSQLND_MEM_D);
nmemb              57 ext/mysqlnd/mysqlnd_alloc.h PHPAPI void *	_mysqlnd_ecalloc(unsigned int nmemb, size_t size MYSQLND_MEM_D);
nmemb              58 ext/mysqlnd/mysqlnd_alloc.h PHPAPI void *	_mysqlnd_pecalloc(unsigned int nmemb, size_t size, zend_bool persistent MYSQLND_MEM_D);
nmemb              64 ext/mysqlnd/mysqlnd_alloc.h PHPAPI void *	_mysqlnd_calloc(unsigned int nmemb, size_t size MYSQLND_MEM_D);
nmemb              75 ext/mysqlnd/mysqlnd_alloc.h #define mnd_ecalloc(nmemb, size)		mysqlnd_allocator.m_ecalloc((nmemb), (size) MYSQLND_MEM_C)
nmemb              76 ext/mysqlnd/mysqlnd_alloc.h #define mnd_pecalloc(nmemb, size, p)	mysqlnd_allocator.m_pecalloc((nmemb), (size), (p) MYSQLND_MEM_C)
nmemb              82 ext/mysqlnd/mysqlnd_alloc.h #define mnd_calloc(nmemb, size)			mysqlnd_allocator.m_calloc((nmemb), (size) MYSQLND_MEM_C)
nmemb             124 ext/sockets/conversions.c static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx)
nmemb             126 ext/sockets/conversions.c 	void *ret = ecalloc(nmemb, alloc_size);
nmemb             130 ext/sockets/conversions.c static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_context *ctx)
nmemb             132 ext/sockets/conversions.c 	void *ret = safe_emalloc(nmemb, alloc_size, offset);
nmemb             133 ext/sockets/conversions.c 	memset(ret, '\0', nmemb * alloc_size + offset);
nmemb             105 main/mergesort.c PHPAPI int php_mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC)
nmemb             118 main/mergesort.c 	if (nmemb == 0)
nmemb             129 main/mergesort.c 	if ((list2 = malloc(nmemb * size + PSIZE)) == NULL)
nmemb             133 main/mergesort.c 	setup(list1, list2, nmemb, size, cmp TSRMLS_CC);
nmemb             134 main/mergesort.c 	last = list2 + nmemb * size;
nmemb             229 main/mergesort.c 	    last = list2 + nmemb*size;
nmemb             232 main/mergesort.c 		memmove(list2, list1, nmemb*size);
nmemb             337 main/php.h     PHPAPI int php_mergesort(void *base, size_t nmemb, register size_t size, int (*cmp)(const void *, const void * TSRMLS_DC) TSRMLS_DC);