mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
enabled Wextra, fixed bugs
This commit is contained in:
@ -145,6 +145,10 @@ restart_select:
|
||||
if (likely(sret > 0)) {
|
||||
|
||||
restart_read:
|
||||
if (*stop_soon_p) {
|
||||
// Early return - the user wants to quit.
|
||||
return 0;
|
||||
}
|
||||
len_read = read(fd, (u8 *)buf, 4);
|
||||
|
||||
if (likely(len_read == 4)) { // for speed we put this first
|
||||
@ -691,7 +695,7 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
|
||||
}
|
||||
|
||||
offset = 0;
|
||||
while (offset < status && (u8)dict[offset] + offset < status) {
|
||||
while (offset < (u32)status && (u8)dict[offset] + offset < (u32)status) {
|
||||
|
||||
fsrv->function_ptr(fsrv->function_opt, dict + offset + 1,
|
||||
(u8)dict[offset]);
|
||||
|
Reference in New Issue
Block a user