]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)
authorZackery Spytz <zspytz@gmail.com>
Tue, 26 May 2020 08:57:09 +0000 (02:57 -0600)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 08:57:09 +0000 (11:57 +0300)
commit5ff5edfef63b3dbc1abb004b3fa4b3db87e79ff9
tree03e4559429d73720b0340d36a7b5452fc0198684
parentc2a177adf3575d4eb81030fba851f78d7a8e3f51
[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)

struct.error is now raised if there is a null character in a struct
format string.
(cherry picked from commit 3f59b55316f4c6ab451997902579aa69020b537c)
Lib/test/test_struct.py
Misc/NEWS.d/next/Library/2019-10-25-23-45-49.bpo-35714.fw3xb7.rst [new file with mode: 0644]
Modules/_struct.c