]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in range_repr...
authorAlexey Izbyshev <izbyshev@ispras.ru>
Fri, 24 Aug 2018 04:39:45 +0000 (07:39 +0300)
committerBenjamin Peterson <benjamin@python.org>
Fri, 24 Aug 2018 04:39:45 +0000 (21:39 -0700)
commit7ecae3ca0bda3cacf3b0125bae0bc718a17cc071
treefd98197f690982b912bab8acc40ee4046357d8aa
parent2b824b2538c4a5f9f520c5de8a1eae5a0c181a94
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.
Objects/rangeobject.c