]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35714: Reject null characters in struct format strings (GH-16928)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 26 May 2020 07:04:59 +0000 (00:04 -0700)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 07:04:59 +0000 (00:04 -0700)
commit5221a10dde4a3853fe7ace316d95767648055109
tree502c4fee95ca0c75364abd0ba40da7aa4571cb76
parenta729f4abb8a3b13b63d46c450faf64202751449b
bpo-35714: Reject null characters in struct format strings (GH-16928)

struct.error is now raised if there is a null character in a struct
format string.
(cherry picked from commit 3f59b55316f4c6ab451997902579aa69020b537c)

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