Lines Matching defs:nmemb
115 static void *Calloc(uptr nmemb, uptr size, const StackTrace &stack) {
116 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
119 ReportCallocOverflow(nmemb, size, &stack);
121 size *= nmemb;
227 void *lsan_reallocarray(void *ptr, uptr nmemb, uptr size,
229 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
233 ReportReallocArrayOverflow(nmemb, size, &stack);
235 return lsan_realloc(ptr, nmemb * size, stack);
238 void *lsan_calloc(uptr nmemb, uptr size, const StackTrace &stack) {
239 return SetErrnoOnNull(Calloc(nmemb, size, stack));