Disable chdir in execute fuzzers

We don't want the current working directory to change during
fuzzing, as that breaks corpus access unless an absolute path is
used. I'm not sure why this issue never came up before.
This commit is contained in:
Nikita Popov 2021-09-22 12:58:20 +02:00
parent 831a2b3c3d
commit b7409d3a63

View file

@ -47,7 +47,7 @@ const char HARDCODED_INI[] =
"open_basedir=/tmp\n" "open_basedir=/tmp\n"
"disable_functions=dl,mail,mb_send_mail" "disable_functions=dl,mail,mb_send_mail"
",shell_exec,exec,system,proc_open,popen,passthru,pcntl_exec" ",shell_exec,exec,system,proc_open,popen,passthru,pcntl_exec"
",chgrp,chmod,chown,copy,file_put_contents,lchgrp,lchown,link,mkdir" ",chdir,chgrp,chmod,chown,copy,file_put_contents,lchgrp,lchown,link,mkdir"
",move_uploaded_file,rename,rmdir,symlink,tempname,touch,unlink,fopen" ",move_uploaded_file,rename,rmdir,symlink,tempname,touch,unlink,fopen"
/* Networking code likes to wait and wait. */ /* Networking code likes to wait and wait. */
",fsockopen,pfsockopen" ",fsockopen,pfsockopen"