Hynek Schlawack <h...@ox.cx> added the comment:

> It appears that os.stat did not check for embedded nulls but just passed the 
> string to Windows.

JFTR, we have fixed it for open() because it's a potential security problem. I 
have implemented a helper function for checking for NUL chars: 
_PyUnicode_HasNULChars

See the already mentioned #13848.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13849>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to