Skip to content

[3.6] closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (GH-8880)#8894

Merged
miss-islington merged 1 commit into
python:3.6from
miss-islington:backport-7ecae3c-3.6
Aug 24, 2018
Merged

[3.6] closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr() (GH-8880)#8894
miss-islington merged 1 commit into
python:3.6from
miss-islington:backport-7ecae3c-3.6

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 24, 2018

Copy link
Copy Markdown
Contributor

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

https://bugs.python.org/issue34468

…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>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@izbyshev and @benjaminp: Backport status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 902f161 into python:3.6 Aug 24, 2018
@miss-islington miss-islington deleted the backport-7ecae3c-3.6 branch August 24, 2018 05:45
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