Add a better fuzz test.

Attempts to verify all the properties defined in the security model,
while also being portable and able to run on many platforms.
This commit is contained in:
Petteri Aimonen
2014-09-06 19:01:11 +03:00
parent 8189d538dd
commit 0dce9ef635
8 changed files with 565 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
#include <stdlib.h>
void* malloc_with_check(size_t size);
void free_with_check(void *mem);
void* counting_realloc(void *ptr, size_t size);
void counting_free(void *ptr);
size_t get_alloc_count();