fuzz: make allocation failures a bit more unlikely

This commit is contained in:
Ivan Nardi 2025-06-12 16:57:50 +02:00
parent 6da6991320
commit 2b14b46df3

View file

@ -13,7 +13,7 @@ static int fastrand ()
}
static void *malloc_wrapper(size_t size) {
return (fastrand () % 16) ? malloc (size) : NULL;
return (fastrand () % 256) ? malloc (size) : NULL;
}
static void free_wrapper(void *freeable) {
free(freeable);