frida_libpng: make test crash happen (much) less frequently

This commit is contained in:
s1341 2021-04-30 15:55:27 +03:00
parent 0019364ff6
commit e3a95e2d70

View File

@ -88,7 +88,7 @@ static char * allocation = NULL;
__attribute__((noinline))
void func3( char * alloc) {
printf("func3\n");
if (random() % 5 == 0) {
if (random() == 0) {
alloc[0xff] = 0xde;
}
}