]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34879: Fix a possible null pointer dereference in bytesobject.c (GH-9683)
authorZackery Spytz <zspytz@gmail.com>
Wed, 3 Oct 2018 06:01:30 +0000 (00:01 -0600)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 3 Oct 2018 06:01:30 +0000 (09:01 +0300)
commit96c593279400693226d5a560c420ae0fcf1731b9
tree47d5c1567cbee5529cb1353286077bd8e6bb3ed5
parente006b39a40e0cd6a90c68f1107853ea2ed0ed54d
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().
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