Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.6] bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174) #10199

Merged
merged 1 commit into from Oct 28, 2018

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Oct 28, 2018

  • 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.
(cherry picked from commit 3d4fabb)

Co-authored-by: Alexey Izbyshev izbyshev@ispras.ru

https://bugs.python.org/issue35090

…onGH-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.
(cherry picked from commit 3d4fabb)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Copy link
Member

@vstinner vstinner left a comment

LGTM.

@miss-islington
Copy link
Contributor Author

miss-islington commented Oct 28, 2018

@izbyshev and @vstinner: Status check is done, and it's a success .

@miss-islington miss-islington merged commit fd0a3bc into python:3.6 Oct 28, 2018
@miss-islington miss-islington deleted the backport-3d4fabb-3.6 branch Oct 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants