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
35503c9c
Kaydet (Commit)
35503c9c
authored
Agu 20, 2012
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #15726: Fix incorrect bounds checking in PyState_FindModule.
Patch by Robin Schreiber.
üst
66d1eb23
75506e8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
Misc/NEWS
+3
-0
pystate.c
Python/pystate.c
+1
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
35503c9c
...
@@ -10,6 +10,9 @@ What's New in Python 3.3.0 Release Candidate 1?
...
@@ -10,6 +10,9 @@ What's New in Python 3.3.0 Release Candidate 1?
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #15726: Fix incorrect bounds checking in PyState_FindModule.
Patch by Robin Schreiber.
- Issue #15604: Update uses of PyObject_IsTrue() to check for and handle
- Issue #15604: Update uses of PyObject_IsTrue() to check for and handle
errors correctly. Patch by Serhiy Storchaka.
errors correctly. Patch by Serhiy Storchaka.
...
...
Python/pystate.c
Dosyayı görüntüle @
35503c9c
...
@@ -248,7 +248,7 @@ PyState_FindModule(struct PyModuleDef* module)
...
@@ -248,7 +248,7 @@ PyState_FindModule(struct PyModuleDef* module)
return
NULL
;
return
NULL
;
if
(
state
->
modules_by_index
==
NULL
)
if
(
state
->
modules_by_index
==
NULL
)
return
NULL
;
return
NULL
;
if
(
index
>
PyList_GET_SIZE
(
state
->
modules_by_index
))
if
(
index
>
=
PyList_GET_SIZE
(
state
->
modules_by_index
))
return
NULL
;
return
NULL
;
res
=
PyList_GET_ITEM
(
state
->
modules_by_index
,
index
);
res
=
PyList_GET_ITEM
(
state
->
modules_by_index
,
index
);
return
res
==
Py_None
?
NULL
:
res
;
return
res
==
Py_None
?
NULL
:
res
;
...
...
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