Lines Matching refs:nmemb
170 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *… in zend_safe_address() argument
172 size_t res = nmemb; in zend_safe_address()
198 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *… in zend_safe_address() argument
200 size_t res = nmemb; in zend_safe_address()
235 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *… in zend_safe_address() argument
242 : "r"(nmemb), in zend_safe_address()
257 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *… in zend_safe_address() argument
264 : "r"(nmemb), in zend_safe_address()
278 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *… in zend_safe_address() argument
288 : "r"(nmemb), in zend_safe_address()
302 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *… in zend_safe_address() argument
304 uint64_t res = (uint64_t) nmemb * (uint64_t) size + (uint64_t) offset; in zend_safe_address()
316 static zend_always_inline size_t zend_safe_address(size_t nmemb, size_t size, size_t offset, bool *… in zend_safe_address() argument
318 size_t res = nmemb * size + offset; in zend_safe_address()
319 double _d = (double)nmemb * (double)size + (double)offset; in zend_safe_address()
331 static zend_always_inline size_t zend_safe_address_guarded(size_t nmemb, size_t size, size_t offset) in zend_safe_address_guarded() argument
334 size_t ret = zend_safe_address(nmemb, size, offset, &overflow); in zend_safe_address_guarded()
337 …(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset); in zend_safe_address_guarded()
344 static zend_always_inline size_t zend_safe_addmult(size_t nmemb, size_t size, size_t offset, const … in zend_safe_addmult() argument
347 size_t ret = zend_safe_address(nmemb, size, offset, &overflow); in zend_safe_addmult()
350 …zend_error_noreturn(E_ERROR, "Possible integer overflow in %s (%zu * %zu + %zu)", message, nmemb, … in zend_safe_addmult()