]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 24 Aug 2018 05:45:40 +0000 (01:45 -0400)
committerGitHub <noreply@github.com>
Fri, 24 Aug 2018 05:45:40 +0000 (01:45 -0400)
commit902f1618388280eeeb3957b273f0ccb3df938723
tree62553c681923ab29411a40948b3a588bb79d8c61
parent7d470f3f24d0c091cf1da4f13695c6bb3200a713
closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition 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 7ecae3ca0bda3cacf3b0125bae0bc718a17cc071)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
Objects/rangeobject.c