Bug report
| join_relfile(filename, bufsize, dirname, relfile); |
| returnfilename; |
can lead to use of uninitialized memory when
join_relfile fails.
| _Py_normpath(wchar_t*path, Py_ssize_tsize) |
| { |
| if (!path[0] ||size==0) { |
in combination with
| path2=_Py_normpath(_Py_join_relfile(path, resolved), -1); |
leads to a nullptr dereference.
Linked PRs
Bug report
cpython/Python/fileutils.c
Lines 2161 to 2162 in 6daf42b
join_relfilefails.cpython/Python/fileutils.c
Lines 2197 to 2199 in 6daf42b
cpython/Modules/getpath.c
Line 450 in 6daf42b
leads to a nullptr dereference.
Linked PRs