Skip to content

Commit

Permalink
Make alloc_clobber_counter of type u16 instead of s64 so that long-ru…
Browse files Browse the repository at this point in the history
…nning in-process fuzzing jobs would still detect uses of uninitialized memory as small as two bytes
  • Loading branch information
Shnatsel committed Aug 23, 2018
1 parent d4a415f commit 050119b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdislocator.so.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
/* Canary & clobber bytes: */

#define ALLOC_CANARY 0xAACCAACC
int alloc_clobber_counter = 0;
u16 alloc_clobber_counter = 0;

#define PTR_C(_p) (((u32*)(_p))[-1])
#define PTR_L(_p) (((u32*)(_p))[-2])
Expand Down

0 comments on commit 050119b

Please sign in to comment.