STINNER Victor <vstin...@python.org> added the comment:

The funny part is that the bug was there for 4 years. It's good that Serhiy 
added new tests to allow to catch this old bug!

commit f7eae0adfcd4c50034281b2c69f461b43b68db84
Author: Serhiy Storchaka <storch...@gmail.com>
Date:   Wed Jun 28 08:30:06 2017 +0300

    [security] bpo-13617: Reject embedded null characters in wchar* strings. 
(#2302)
    
    Based on patch by Victor Stinner.
    
    Add private C API function _PyUnicode_AsUnicode() which is similar to
    PyUnicode_AsUnicode(), but checks for null characters.

It wasn't me! Ok, maybejust a little bit :-D

----------
nosy: +vstinner

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

Reply via email to