]> 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:34:06 +0000 (01:34 -0400)
committerGitHub <noreply@github.com>
Fri, 24 Aug 2018 05:34:06 +0000 (01:34 -0400)
commitd9e1abf8d36da19f074f16046c4a9b5fe54cc083
tree2d863b4d8a3e82637ac862d73670d57ae7ab8ed5
parenta59036365b304d43bba0f050fa9a7d76100e0ae1
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