mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Thanks to Coverity, these were all reported by their Prevent tool.
All of these (except _lsprof.c) should be backported. Particularly the hotshot change which validates sys.path. Can someone backport?
This commit is contained in:
parent
e22373d690
commit
60da31660c
6 changed files with 25 additions and 2 deletions
|
|
@ -850,6 +850,8 @@ init_lsprof(void)
|
|||
{
|
||||
PyObject *module, *d;
|
||||
module = Py_InitModule3("_lsprof", moduleMethods, "Fast profiler");
|
||||
if (module == NULL)
|
||||
return;
|
||||
d = PyModule_GetDict(module);
|
||||
if (PyType_Ready(&PyProfiler_Type) < 0)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue