Bug report
|
join_relfile(filename, bufsize, dirname, relfile); |
|
return filename; |
can lead to use of uninitialized memory when
join_relfile fails.
|
_Py_normpath(wchar_t *path, Py_ssize_t size) |
|
{ |
|
if (!path[0] || size == 0) { |
in combination with
|
path2 = _Py_normpath(_Py_join_relfile(path, resolved), -1); |
leads to a nullptr dereference.
Linked PRs