| 113 | } |
| 114 | |
| 115 | static void *Calloc(uptr nmemb, uptr size, const StackTrace &stack) { |
| 116 | if (UNLIKELY(CheckForCallocOverflow(size, nmemb))) { |
| 117 | if (AllocatorMayReturnNull()) |
| 118 | return nullptr; |
| 119 | ReportCallocOverflow(nmemb, size, &stack); |
| 120 | } |
| 121 | size *= nmemb; |
| 122 | return Allocate(stack, size, 1, true); |
| 123 | } |
| 124 | |
| 125 | void Deallocate(void *p) { |
| 126 | RegisterDeallocation(p); |
no test coverage detected