fix PCGUARD, build aflpp_driver with fPIC

This commit is contained in:
vanhauser-thc
2021-04-30 10:27:43 +02:00
parent 17b860d811
commit c9d066038f
5 changed files with 64 additions and 68 deletions

View File

@ -70,12 +70,18 @@ static void __afl_map_shm(void) {
char *id_str = getenv(SHM_ENV_VAR);
char *ptr;
/* NOTE TODO BUG FIXME: if you want to supply a variable sized map then
uncomment the following: */
/*
if ((ptr = getenv("AFL_MAP_SIZE")) != NULL) {
u32 val = atoi(ptr);
if (val > 0) __afl_map_size = val;
}
*/
if (__afl_map_size > MAP_SIZE) {