We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 504ffda commit 40d9ff6Copy full SHA for 40d9ff6
Modules/_xxtestfuzz/fuzzer.c
@@ -411,8 +411,17 @@ int __lsan_is_turned_off(void) { return 1; }
411
412
413
int LLVMFuzzerInitialize(int *argc, char ***argv) {
414
+ PyConfig config;
415
+ PyConfig_InitIsolatedConfig(&config);
416
+ PyStatus status;
417
wchar_t* wide_program_name = Py_DecodeLocale(*argv[0], NULL);
- Py_SetProgramName(wide_program_name);
418
+ status = PyConfig_SetString(&config, &config.program_name,
419
+ wide_program_name);
420
+ if (PyStatus_Exception(status)) {
421
+ PyConfig_Clear(&config);
422
+ Py_ExitStatusException(status);
423
+ }
424
+
425
return 0;
426
}
427
0 commit comments