]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35552: Fix reading past the end in PyUnicode_FromFormat() and PyBytes_FromFormat...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 12 Jan 2019 08:52:55 +0000 (00:52 -0800)
committerGitHub <noreply@github.com>
Sat, 12 Jan 2019 08:52:55 +0000 (00:52 -0800)
commitcbc7c2c791185ad44b4b3ede72309df5f252f4cb
tree9b7e2027e156fc4d7d735180bbafd9a1d9115f89
parentd39c19255910b9dce08c595f511597e98b09e91f
bpo-35552: Fix reading past the end in PyUnicode_FromFormat() and PyBytes_FromFormat(). (GH-11276)

Format characters "%s" and "%V" in PyUnicode_FromFormat() and "%s" in PyBytes_FromFormat()
no longer read memory past the limit if precision is specified.
(cherry picked from commit d586ccb04f79863c819b212ec5b9d873964078e4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2018-12-21-13-29-30.bpo-35552.1DzQQc.rst [new file with mode: 0644]
Objects/bytesobject.c
Objects/unicodeobject.c