]> granicus.if.org Git - python/commit
bpo-30255: Clip step in _PySlice_Unpack() (#1429)
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 3 May 2017 14:00:12 +0000 (16:00 +0200)
committerGitHub <noreply@github.com>
Wed, 3 May 2017 14:00:12 +0000 (16:00 +0200)
commitf6a3133972378205baaa6a854d46170d04a2db67
tree7d3cea53253ff1d8e21814d47b7f58d22c006ec9
parent0d493795c8601d600a93e6a00e6c8ef3620d5aab
bpo-30255: Clip step in _PySlice_Unpack() (#1429)

In PySlice_IndicesEx, clip the step to [-PY_SSIZE_T_MAX,
PY_SSIZE_T_MAX] rather than [PY_SSIZE_T_MIN, PY_SSIZE_T_MAX].

(cherry picked from commit e6fc7401a92c7b51a80782d8095819b9909a0322)
Misc/NEWS
Objects/sliceobject.c