]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174)
authorAlexey Izbyshev <izbyshev@ispras.ru>
Sun, 28 Oct 2018 16:45:50 +0000 (19:45 +0300)
committerVictor Stinner <vstinner@redhat.com>
Sun, 28 Oct 2018 16:45:50 +0000 (17:45 +0100)
commit3d4fabb2a424cb04ae446ebe4428090c386f45a5
tree31ba780345d92c1d73db0fcfe04995a360c3a0f2
parent68d6dc0770288075504635a8e42696070823fd69
bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174)

* Fix potential division by zero in BZ2_Malloc()
* Avoid division by zero in PyLzma_Malloc()
* Avoid division by zero and integer overflow in PyZlib_Malloc()

Reported by Svace static analyzer.
Modules/_bz2module.c
Modules/_lzmamodule.c
Modules/zlibmodule.c