]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (GH-8721) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 May 2021 11:03:10 +0000 (04:03 -0700)
committerGitHub <noreply@github.com>
Sun, 2 May 2021 11:03:10 +0000 (13:03 +0200)
commitcf6a79644c227159b8b5a44055650266d578b9f6
tree4cb9542b370a4da6d5719e69d9833fb4d341b848
parentbb3ec9ceae7032457f6e7fb72b39aee95976051c
bpo-32745: Fix a regression in the handling of ctypes' c_wchar_p type (GH-8721) (#25812)

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>
(cherry picked from commit 73766b0341674f3920f4ea86a6f8288b801960f9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
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