Lines Matching defs:nmemb
783 void *Calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) {
784 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
787 ReportCallocOverflow(nmemb, size, stack);
789 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false);
793 REAL(memset)(ptr, 0, nmemb * size);
1013 void *asan_calloc(uptr nmemb, uptr size, BufferedStackTrace *stack) {
1014 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack));
1017 void *asan_reallocarray(void *p, uptr nmemb, uptr size,
1019 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
1023 ReportReallocArrayOverflow(nmemb, size, stack);
1025 return asan_realloc(p, nmemb * size, stack);