diff --git a/projects/pyodbc/fuzz_curs_exec.py b/projects/pyodbc/fuzz_curs_exec.py index 324c6d082..7f9ad1536 100644 --- a/projects/pyodbc/fuzz_curs_exec.py +++ b/projects/pyodbc/fuzz_curs_exec.py @@ -48,9 +48,10 @@ def TestOneInput(data): def main(): # Write the odbcinst.ini file dir_path = os.path.dirname(os.path.realpath(__file__)) - with open("/etc/odbcinst.ini", "w") as f: + with open("/tmp/odbcinst.ini", "w") as f: f.write("[FUZZ]\n") f.write("Driver=%s/fuzzodbc.so\n"%(dir_path)) + os.environ['ODBCSYSINI'] = '/tmp/' atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True)