SIGN IN SIGN UP

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.
A
Alexey Izbyshev committed
3d4fabb2a424cb04ae446ebe4428090c386f45a5
Parent: 68d6dc0
Committed by Victor Stinner <vstinner@redhat.com> on 10/28/2018, 4:45:50 PM