]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (#8721)
authorZackery Spytz <zspytz@gmail.com>
Sun, 2 May 2021 10:40:01 +0000 (03:40 -0700)
committerGitHub <noreply@github.com>
Sun, 2 May 2021 10:40:01 +0000 (12:40 +0200)
commit73766b0341674f3920f4ea86a6f8288b801960f9
tree96db30a3f398b097b1bab3849e42563c453746a2
parent518f8b5dd50b73499282a1ef02b197af106ad118
bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (#8721)

Embedded nulls would cause a ValueError to be raised. Thanks go to
Eryk Sun for their analysis.

Co-authored-by: Ɓukasz Langa <lukasz@langa.pl>
Lib/ctypes/test/test_unicode.py
Misc/NEWS.d/next/Library/2018-08-09-23-47-10.bpo-32745.iQi9hI.rst [new file with mode: 0644]
Modules/_ctypes/cfield.c