]> 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:34:05 +0000 (23:34 -0700)
committerGitHub <noreply@github.com>
Wed, 3 Oct 2018 06:34:05 +0000 (23:34 -0700)
commit6580e52b64cb207f03a1bf86a18f088b081c10f4
treea703137ffa9e88dfeff6c97d00c09fd9cdd632cf
parentf1e8be70a635995e67230b7eb73b08c442d886f8
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