]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 3 Oct 2018 06:33:42 +0000 (23:33 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Oct 2018 06:33:42 +0000 (23:33 -0700)
commit063755c20184e80f587d522600536d1ba70a5f7e
tree8ef81dc95639893c6f50b4d2e2522fbd669107af
parent97f998a4dfd6db6d867f446daa62445d0782bf39
bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)

formatfloat() was not checking if PyBytes_FromStringAndSize()
failed, which could lead to a null pointer dereference in
_PyBytes_FormatEx().
(cherry picked from commit 96c593279400693226d5a560c420ae0fcf1731b9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Misc/NEWS.d/next/Core and Builtins/2018-10-02-22-55-11.bpo-34879.7VNH2a.rst [new file with mode: 0644]
Objects/bytesobject.c