Skip to content

bpo-34468: Objects/rangeobject.c: Fix an always-false condition in ra…#8880

Merged
benjaminp merged 1 commit into
python:masterfrom
izbyshev:bpo-34468
Aug 24, 2018
Merged

bpo-34468: Objects/rangeobject.c: Fix an always-false condition in ra…#8880
benjaminp merged 1 commit into
python:masterfrom
izbyshev:bpo-34468

Conversation

@izbyshev

@izbyshev izbyshev commented Aug 23, 2018

Copy link
Copy Markdown
Contributor

…nge_repr()

Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.

https://bugs.python.org/issue34468

…nge_repr()

Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @izbyshev for the PR, and @benjaminp for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 24, 2018
…n in range_repr() (pythonGH-8880)

Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.
(cherry picked from commit 7ecae3c)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
@bedevere-bot

Copy link
Copy Markdown

GH-8893 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Aug 24, 2018
…n in range_repr() (pythonGH-8880)

Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.
(cherry picked from commit 7ecae3c)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
@bedevere-bot

Copy link
Copy Markdown

GH-8894 is a backport of this pull request to the 3.6 branch.

miss-islington added a commit that referenced this pull request Aug 24, 2018
…n in range_repr() (GH-8880)

Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.
(cherry picked from commit 7ecae3c)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
miss-islington added a commit that referenced this pull request Aug 24, 2018
…n in range_repr() (GH-8880)

Also, propagate the error from PyNumber_AsSsize_t() because we don't care
only about OverflowError which is not reported if the second argument is NULL.

Reported by Svace static analyzer.
(cherry picked from commit 7ecae3c)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
@izbyshev izbyshev deleted the bpo-34468 branch August 24, 2018 10:00
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.

5 participants