Lines Matching defs:nmemb
177 static void *DFsanCalloc(uptr nmemb, uptr size) {
178 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
182 ReportCallocOverflow(nmemb, size, &stack);
184 return DFsanAllocate(nmemb * size, sizeof(u64), true /*zeroise*/);
219 void *__dfsan::dfsan_calloc(uptr nmemb, uptr size) {
220 return SetErrnoOnNull(DFsanCalloc(nmemb, size));
233 void *__dfsan::dfsan_reallocarray(void *ptr, uptr nmemb, uptr size) {
234 if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) {
239 ReportReallocArrayOverflow(nmemb, size, &stack);
241 return dfsan_realloc(ptr, nmemb * size);