]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.8] bpo-35714: Reject null characters in struct format strings (GH-16928) (GH-20419)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 26 May 2020 09:16:36 +0000 (02:16 -0700)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 09:16:36 +0000 (02:16 -0700)
commit4ea802868460fad54e40cb99eb0ca283b3b293f0
tree8eaa94a8dcde11c0528d30d555c0ff9e177f9ff1
parentb068d892c1ba7b996e43aceb974bfadac3c577ed
[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)
(cherry picked from commit 5ff5edfef63b3dbc1abb004b3fa4b3db87e79ff9)

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