Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d43e9287
Commit
d43e9287
authored
May 21, 2015
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #23985: Fixed integer overflow in iterator object. Original patch by
Clement Rouault.
parent
32208495
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+3
-0
Objects/iterobject.c
Objects/iterobject.c
+5
-0
No files found.
Misc/ACKS
View file @
d43e9287
...
...
@@ -1159,6 +1159,7 @@ Guido van Rossum
Just van Rossum
Hugo van Rossum
Saskia van Rossum
Clement Rouault
Donald Wallace Rouse II
Liam Routt
Todd Rovito
...
...
Misc/NEWS
View file @
d43e9287
...
...
@@ -10,6 +10,9 @@ What's New in Python 2.7.11?
Core and Builtins
-----------------
- Issue #23985: Fixed integer overflow in iterator object. Original patch by
Clement Rouault.
- Issue #24102: Fixed exception type checking in standard error handlers.
Library
...
...
Objects/iterobject.c
View file @
d43e9287
...
...
@@ -54,6 +54,11 @@ iter_iternext(PyObject *iterator)
seq
=
it
->
it_seq
;
if
(
seq
==
NULL
)
return
NULL
;
if
(
it
->
it_index
==
LONG_MAX
)
{
PyErr_SetString
(
PyExc_OverflowError
,
"iter index too large"
);
return
NULL
;
}
result
=
PySequence_GetItem
(
seq
,
it
->
it_index
);
if
(
result
!=
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment