diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2010-08-06 18:55:26 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2010-08-06 18:55:26 (GMT) |
commit | e6fc7401a92c7b51a80782d8095819b9909a0322 (patch) | |
tree | d31c18c8224c1a8248091b54c156ff45726212a7 /Misc | |
parent | af5ac3974b7dbf824c8ed560c7dd5588fab0d419 (diff) | |
download | cpython-e6fc7401a92c7b51a80782d8095819b9909a0322.zip cpython-e6fc7401a92c7b51a80782d8095819b9909a0322.tar.gz cpython-e6fc7401a92c7b51a80782d8095819b9909a0322.tar.bz2 |
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].
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -529,6 +529,10 @@ Core and Builtins C-API ----- +- PySlice_GetIndicesEx now clips the step to [-PY_SSIZE_T_MAX, PY_SSIZE_T_MAX] + instead of [-PY_SSIZE_T_MAX-1, PY_SSIZE_T_MAX]. This makes it safe to do + "step = -step" when reversing a slice. + - Issue #5753: A new C API function, `PySys_SetArgvEx`, allows embedders of the interpreter to set sys.argv without also modifying sys.path. This helps fix `CVE-2008-5983 |