[issue15905] Copy to fixed size buffer w/o check in sys_update_path

Christian Heimes report at bugs.python.org
Sun Jul 21 01:12:42 CEST 2013


Christian Heimes added the comment:

Here is a patch for 3.3 and tip that replaces wcscpy() with wcsncpy() and adds a proper NUL terminator at MAXPATHLEN.

----------
keywords: +patch
stage: needs patch -> patch review
versions:  -Python 3.2
Added file: http://bugs.python.org/file30992/path_wcsncpy.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15905>
_______________________________________


More information about the Python-bugs-list mailing list