mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
fix #483
This commit is contained in:
@ -673,14 +673,15 @@ static u8 rtn_extend_encoding(afl_state_t *afl, struct cmp_header *h,
|
||||
|
||||
for (i = 0; i < its_len; ++i) {
|
||||
|
||||
if (pattern[idx + i] != buf[idx + i] ||
|
||||
o_pattern[idx + i] != orig_buf[idx + i] || *status == 1) {
|
||||
if (pattern[i] != buf[idx + i] ||
|
||||
o_pattern[i] != orig_buf[idx + i] || *status == 1) {
|
||||
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
buf[idx + i] = repl[idx + i];
|
||||
buf[idx + i] = repl[i];
|
||||
|
||||
if (unlikely(its_fuzz(afl, buf, len, status))) { return 1; }
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user