Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d43e9287
Kaydet (Commit)
d43e9287
authored
May 21, 2015
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23985: Fixed integer overflow in iterator object. Original patch by
Clement Rouault.
üst
32208495
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
iterobject.c
Objects/iterobject.c
+5
-0
No files found.
Misc/ACKS
Dosyayı görüntüle @
d43e9287
...
@@ -1159,6 +1159,7 @@ Guido van Rossum
...
@@ -1159,6 +1159,7 @@ Guido van Rossum
Just van Rossum
Just van Rossum
Hugo van Rossum
Hugo van Rossum
Saskia van Rossum
Saskia van Rossum
Clement Rouault
Donald Wallace Rouse II
Donald Wallace Rouse II
Liam Routt
Liam Routt
Todd Rovito
Todd Rovito
...
...
Misc/NEWS
Dosyayı görüntüle @
d43e9287
...
@@ -10,6 +10,9 @@ What's New in Python 2.7.11?
...
@@ -10,6 +10,9 @@ What's New in Python 2.7.11?
Core and Builtins
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.
- Issue #24102: Fixed exception type checking in standard error handlers.
Library
Library
...
...
Objects/iterobject.c
Dosyayı görüntüle @
d43e9287
...
@@ -54,6 +54,11 @@ iter_iternext(PyObject *iterator)
...
@@ -54,6 +54,11 @@ iter_iternext(PyObject *iterator)
seq
=
it
->
it_seq
;
seq
=
it
->
it_seq
;
if
(
seq
==
NULL
)
if
(
seq
==
NULL
)
return
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
);
result
=
PySequence_GetItem
(
seq
,
it
->
it_index
);
if
(
result
!=
NULL
)
{
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