Lines Matching full:alloc
21 } alloc[100]; variable
29 if (idx >= length(alloc)) in malloc()
32 alloc[idx].pos = pos; in malloc()
33 alloc[idx].n = n; in malloc()
53 if (alloc[i].pos == pos) in findidx()
62 size_t m = alloc[findidx(p)].n; in realloc()
72 memset(p, 42, alloc[i].n); in free()
73 alloc[i].freed = 1; in free()
79 if (alloc[i].freed) in checkfreed()
80 for (size_t j=0; j<alloc[i].n; j++) in checkfreed()
81 if (buf[alloc[i].pos + j] != 42) { in checkfreed()
82 … t_error("freed allocation %d (pos: %zu, len: %zu) is clobbered\n", i, alloc[i].pos, alloc[i].n); in checkfreed()