mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-19 04:58:08 +00:00
quickfix for first big bug that use_stdin was not correctly initialized and could not be set
This commit is contained in:
@ -135,6 +135,15 @@ void handle_timeout(int sig) {
|
||||
|
||||
void afl_fsrv_init(afl_forkserver_t *fsrv) {
|
||||
|
||||
uint32_t i, j = 0;
|
||||
|
||||
// this is the default and is != 0 so we need to set it if fsrv is still
|
||||
// uninitialized
|
||||
for (i = 0; i < sizeof(afl_forkserver_t) && j == 0; i++)
|
||||
if (((char*)fsrv)[i] != 0)
|
||||
j = 1;
|
||||
if (j == 0)
|
||||
fsrv->use_stdin = 1;
|
||||
list_append(&fsrv_list, fsrv);
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user