mangle: resizing is required for small files, even if number of changes is 1
@@ -392,6 +392,10 @@ static void mangle_InsertRnd(honggfuzz_t * hfuzz UNUSED, fuzzer_t * fuzzer)
void mangle_mangleContent(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
{
+ /* In 20% of cases: resize the file */
+ if (util_rndGet(0, 5) == 0) {
+ mangle_Resize(hfuzz, fuzzer);
+ }
/* *INDENT-OFF* */
static void (*const mangleFuncs[]) (honggfuzz_t* hfuzz, fuzzer_t* fuzzer) = {
mangle_Byte,
@@ -413,7 +417,6 @@ void mangle_mangleContent(honggfuzz_t * hfuzz, fuzzer_t * fuzzer)
mangle_MemSet,
mangle_Random,
mangle_CloneByte,
- mangle_Resize,
mangle_Expand,
mangle_Shrink,
mangle_InsertRnd,
