fix stdin trimming

This commit is contained in:
vanhauser-thc
2021-04-30 23:41:06 +02:00
parent f4cc718fdc
commit 86452cc959
4 changed files with 21 additions and 15 deletions

View File

@ -1090,7 +1090,7 @@ void afl_fsrv_write_to_testcase(afl_forkserver_t *fsrv, u8 *buf, size_t len) {
#endif
if (likely(fsrv->use_shmem_fuzz && fsrv->shmem_fuzz)) {
if (likely(fsrv->use_shmem_fuzz)) {
if (unlikely(len > MAX_FILE)) len = MAX_FILE;