fuzz: try setting PYTHONNOUSERSITE=1 to avoid loading site-packages
Right now the fuzzer is crashing trying to look up the home dir for
uid 0, which is breaking in the fuzz environment.
Differential Revision: https://phab.mercurial-scm.org/D4936
--- a/contrib/fuzz/manifest.cc Wed Oct 03 10:46:56 2018 +0200
+++ b/contrib/fuzz/manifest.cc Thu Oct 11 07:27:24 2018 -0400
@@ -30,6 +30,7 @@
}
strncpy(cpypath, pypath.c_str(), pypath.size());
setenv("PYTHONPATH", cpypath, 1);
+ setenv("PYTHONNOUSERSITE", "1", 1);
Py_SetPythonHome(cpypath);
Py_InitializeEx(0);
return 0;