mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 04:38:08 +00:00
better map variability
This commit is contained in:
@ -12,6 +12,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
|
|||||||
- afl-cc:
|
- afl-cc:
|
||||||
- fix cmplog rtn (rare crash and not being able to gather ptr data)
|
- fix cmplog rtn (rare crash and not being able to gather ptr data)
|
||||||
- link runtime not to shared libs
|
- link runtime not to shared libs
|
||||||
|
- ensure shared libraries are properly built and instrumented
|
||||||
- qemu_mode (thanks @realmadsci):
|
- qemu_mode (thanks @realmadsci):
|
||||||
- move AFL_PRELOAD and AFL_USE_QASAN logic inside afl-qemu-trace
|
- move AFL_PRELOAD and AFL_USE_QASAN logic inside afl-qemu-trace
|
||||||
- add AFL_QEMU_CUSTOM_BIN
|
- add AFL_QEMU_CUSTOM_BIN
|
||||||
|
@ -1584,12 +1584,14 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
afl->cmplog_fsrv.cmplog_binary = afl->cmplog_binary;
|
afl->cmplog_fsrv.cmplog_binary = afl->cmplog_binary;
|
||||||
afl->cmplog_fsrv.init_child_func = cmplog_exec_child;
|
afl->cmplog_fsrv.init_child_func = cmplog_exec_child;
|
||||||
|
|
||||||
if (map_size <= DEFAULT_SHMEM_SIZE && !afl->non_instrumented_mode &&
|
if ((map_size <= DEFAULT_SHMEM_SIZE ||
|
||||||
!afl->fsrv.qemu_mode && !afl->unicorn_mode) {
|
afl->cmplog_fsrv.map_size < map_size) &&
|
||||||
|
!afl->non_instrumented_mode && !afl->fsrv.qemu_mode &&
|
||||||
|
!afl->unicorn_mode) {
|
||||||
|
|
||||||
afl->fsrv.map_size = DEFAULT_SHMEM_SIZE; // dummy temporary value
|
afl->cmplog_fsrv.map_size = MAX(map_size, (u32)DEFAULT_SHMEM_SIZE);
|
||||||
char vbuf[16];
|
char vbuf[16];
|
||||||
snprintf(vbuf, sizeof(vbuf), "%u", DEFAULT_SHMEM_SIZE);
|
snprintf(vbuf, sizeof(vbuf), "%u", afl->cmplog_fsrv.map_size);
|
||||||
setenv("AFL_MAP_SIZE", vbuf, 1);
|
setenv("AFL_MAP_SIZE", vbuf, 1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user