mirror of
https://github.com/vel21ripn/nDPI.git
synced 2026-04-29 23:49:41 +00:00
fuzz: make allocation failures a bit more unlikely
This commit is contained in:
parent
6da6991320
commit
2b14b46df3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue