Show More
@@ -31,6 +31,8 b' extern "C" int LLVMFuzzerInitialize(int ' | |||||
31 | strncpy(cpypath, pypath.c_str(), pypath.size()); |
|
31 | strncpy(cpypath, pypath.c_str(), pypath.size()); | |
32 | setenv("PYTHONPATH", cpypath, 1); |
|
32 | setenv("PYTHONPATH", cpypath, 1); | |
33 | setenv("PYTHONNOUSERSITE", "1", 1); |
|
33 | setenv("PYTHONNOUSERSITE", "1", 1); | |
|
34 | /* prevent Python from looking up users in the fuzz environment */ | |||
|
35 | setenv("PYTHONUSERBASE", cpypath, 1); | |||
34 | Py_SetPythonHome(cpypath); |
|
36 | Py_SetPythonHome(cpypath); | |
35 | Py_InitializeEx(0); |
|
37 | Py_InitializeEx(0); | |
36 | return 0; |
|
38 | return 0; |
General Comments 0
You need to be logged in to leave comments.
Login now