mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 01:31:37 +00:00
fix FPE in colorization
This commit is contained in:
parent
938512a6b9
commit
4c47b242eb
@ -421,8 +421,9 @@ static u8 colorization(afl_state_t *afl, u8 *buf, u32 len,
|
|||||||
|
|
||||||
if (taint) {
|
if (taint) {
|
||||||
|
|
||||||
if (len / positions == 1 && positions > CMPLOG_POSITIONS_MAX &&
|
if (afl->colorize_success &&
|
||||||
afl->active_paths / afl->colorize_success > CMPLOG_CORPUS_PERCENT) {
|
(len / positions == 1 && positions > CMPLOG_POSITIONS_MAX &&
|
||||||
|
afl->active_paths / afl->colorize_success > CMPLOG_CORPUS_PERCENT)) {
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
fprintf(stderr, "Colorization unsatisfactory\n");
|
fprintf(stderr, "Colorization unsatisfactory\n");
|
||||||
@ -1547,6 +1548,7 @@ static u8 cmp_fuzz(afl_state_t *afl, u32 key, u8 *orig_buf, u8 *buf, u8 *cbuf,
|
|||||||
is_n = 1;
|
is_n = 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = 0; i < loggeds; ++i) {
|
for (i = 0; i < loggeds; ++i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user