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