Skip to content

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

Merged
miss-islington merged 1 commit intopython:3.6from
miss-islington:backport-3d4fabb-3.6
Oct 28, 2018
Merged

[3.6] bpo-35090: Fix potential division by zero in allocator wrappers (GH-10174)#10199
miss-islington merged 1 commit intopython:3.6from
miss-islington:backport-3d4fabb-3.6

Conversation

@miss-islington
Copy link
Copy Markdown
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
Copy Markdown
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@miss-islington
Copy link
Copy Markdown
Contributor Author

@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 October 28, 2018 20:59
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.

4 participants