Skip to content

Commit daab85f

Browse files
committed
nit
1 parent 97ed8c2 commit daab85f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/afl-fuzz-bitmap.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,12 @@ save_if_interesting(afl_state_t *afl, void *mem, u32 len, u8 fault) {
482482
u64 cksum = 0;
483483

484484
// will be classified away otherwise
485-
afl->current_score = *(u32 *)((u8 *)afl->fsrv.trace_bits + 1);
485+
if (unlikely((afl->current_score = *(u32 *)((u8 *)afl->fsrv.trace_bits + 1)) >
486+
0)) {
487+
488+
memset(afl->fsrv.trace_bits + 1, 0, 4);
489+
490+
}
486491

487492
/* Update path frequency. */
488493

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy