Lines Matching full:guard
175 char guard[sizeof(size_t)]; member
176 } Guard; typedef
184 Guard* guard; in unity_malloc() local
195 guard = (Guard*)malloc(size + sizeof(Guard) + 4); in unity_malloc()
196 guard->size = size; in unity_malloc()
197 mem = (char*)&(guard[1]); in unity_malloc()
205 Guard* guard = (Guard*)mem; in isOverrun() local
207 guard--; in isOverrun()
209 return strcmp(&memAsChar[guard->size], end) != 0; in isOverrun()
214 Guard* guard = (Guard*)mem; in release_memory() local
215 guard--; in release_memory()
218 free(guard); in release_memory()
223 int overrun = isOverrun(mem);//strcmp(&memAsChar[guard->size], end) != 0; in unity_free()
240 Guard* guard = (Guard*)oldMem; in unity_realloc() local
247 guard--; in unity_realloc()
260 if (guard->size >= size) in unity_realloc()
264 memcpy(newMem, oldMem, guard->size); in unity_realloc()