about summary refs log tree commit diff
path: root/src/afl-common.c
AgeCommit message (Collapse)Author
2020-05-28Fix read_timed when accumulating short readsDavid Melski
The existing code appears to use 'len_read' in several places where 'total_read' was intended. The function may work if the first 1 or 2 iterations of the loop read the requested 'len' bytes. If the first two reads are "short" and a third read is done, the bytes will be placed over previously read bytes in buf and more than 'len' bytes may be read in total, though buf is never overrun. This commit changes read_timed to (1) correctly append short reads in buf (2) correctly terminate when the sum of the short reads equals the requested 'len' bytes (3) return an error when read() returns -1 or 0 The function also depends on select() decrementing the timeout structure, as it does on Linux. On other platforms, the exec_ms returned is likely incorrect. This patch does not attempt to address this issue.
2020-05-23AFL_LLVM_LAF_ALLvan Hauser
2020-05-14deprecated AFL_POST_LIBRARYvan Hauser
2020-05-12missing env varvan Hauser
2020-05-12new code formatting + appliedvan Hauser
2020-05-10indenting preprocessor directives breaks compilation and cant be fixed, ↵van Hauser
reverting ... :-(
2020-05-10fix warning, code formatvan Hauser
2020-05-07added AFL_LLVM_SKIPSINGLEBLOCK and changed default behaviour to instrument ↵van Hauser
single block functions
2020-05-02AFL_LLVM_SKIP_NEVERZERO addedvan Hauser
2020-04-30afl-untracer - next stepvan Hauser
2020-04-26refactored global listsDominik Maier
2020-04-24variable map size fix, error reporting through forkserver, code formatvan Hauser
2020-04-23fixed map location support for LTOvan Hauser
2020-04-19clang-tidy readability-braces (#323)Dominik Maier
2020-04-17Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into devhexcoder-
2020-04-17add AFL_NO_PYTHON to list of env variableshexcoder-
2020-04-17refactoring getting the map sizevan Hauser
2020-04-17final fix for map_sizevan Hauser
2020-04-17Merge branch 'dev' of github.com:aflplusplus/aflplusplus into devDominik Maier
2020-04-17clearer codeDominik Maier
2020-04-17added AFL_MAP_SIZE (wip)van Hauser
2020-04-17fixed 2 unimportant leaksvan Hauser
2020-04-16removed redundent funcsDominik Maier
2020-04-13fixed uaf and warningsDominik Maier
2020-04-12Better solution for ARM64 build fix (#315)David CARLIER
2020-04-12build on arm64 fix. tested on Android. (#313)David CARLIER
2020-04-11refactored cmplogDominik Maier
2020-04-10LTO optimization, variable map size, autodictionary (#307)van Hauser
* lto module clean-up * step 1/3 * step 1/3 completed * if tmp is ever made non-static * parts 2 and 3 - autodictionary is complete * variable map_size support * variable map size: changed overlooked functions * remove debug for autodict * 64 bit alignment of map size * fix review comments * force 64 bit alignment on both sides * typo
2020-04-10tackeled some warningsDominik Maier
2020-04-10resize fix + code formatDominik Maier
2020-04-09check for empty AFL env varsvan Hauser
2020-04-09ctx donevan Hauser
2020-04-09update env with AFL_NO_SNAPSHOTAndrea Fioraldi
2020-04-09added AFL_LLVM_INSTRUMENT, made USE_TRACE_PC obselete and llvm_mode Makefile ↵van Hauser
fix, fixed for FUSELD (for LTO)
2020-04-01make travis happyDominik Maier
2020-04-01src doku is now markdownDominik Maier
2020-04-01dropped make switchesDominik Maier
2020-04-01add CFI sanitizervan Hauser
2020-03-20added llvm_mode ngram coveragevan Hauser
2020-03-15Move afl-fuzz related env variables into afl_state_t (#252)Rishi Ranjan
* Move afl-fuzz related env variables into afl_state_t * Move the env variables assignment from fuzz_init and code Format * Fix typo * Remove redundant env variables from afl_env struct * Rename function to read_afl_environment
2020-03-15fauxserverDominik Maier
2020-03-13afl-common.c: fix my error: argv is a copy (ck_alloc based)hexcoder-
Now unicorn_mode works with ASAN_BUILD and _WANT_ORIGINAL_AFL_ALLOC and DEBUG_BUILD also.
2020-03-13afl-common.c: ... but that breaks unicorn_mode, which it should not.hexcoder-
2020-03-13afl-common.c: avoid AFL++'s allocation API for libc's argv[] and reducehexcoder-
complexity for cwd
2020-03-12fix afl-common.c for *BSDhexcoder-
2020-03-11honor afl_quiet on env var checks + code-formatvan Hauser
2020-03-10unified pointer placementDominik Maier
2020-03-10code-format - and afl-cmin/afl-showmap was fixed in the bugfix for afl-tminvan Hauser
2020-03-09now wiht 90% less leaksDominik Maier
2020-03-09quickfix for first big bug that use_stdin was not correctly initialized and ↵van Hauser
could not be set