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
c30d0585
Kaydet (Commit)
c30d0585
authored
Eyl 27, 2013
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 3.3 (#19098)
üst
1891cff5
305e5aac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
NEWS
Misc/NEWS
+3
-0
symtable.c
Python/symtable.c
+6
-2
No files found.
Misc/NEWS
Dosyayı görüntüle @
c30d0585
...
@@ -9,6 +9,9 @@ Core and Builtins
...
@@ -9,6 +9,9 @@ Core and Builtins
-
Issue
#
18818
:
The
"encodingname"
part
of
PYTHONIOENCODING
is
now
optional
.
-
Issue
#
18818
:
The
"encodingname"
part
of
PYTHONIOENCODING
is
now
optional
.
-
Issue
#
19098
:
Prevent
overflow
in
the
compiler
when
the
recursion
limit
is
set
absurbly
high
.
Library
Library
-------
-------
...
...
Python/symtable.c
Dosyayı görüntüle @
c30d0585
...
@@ -239,6 +239,7 @@ PySymtable_BuildObject(mod_ty mod, PyObject *filename, PyFutureFeatures *future)
...
@@ -239,6 +239,7 @@ PySymtable_BuildObject(mod_ty mod, PyObject *filename, PyFutureFeatures *future)
asdl_seq
*
seq
;
asdl_seq
*
seq
;
int
i
;
int
i
;
PyThreadState
*
tstate
;
PyThreadState
*
tstate
;
int
recursion_limit
=
Py_GetRecursionLimit
();
if
(
st
==
NULL
)
if
(
st
==
NULL
)
return
NULL
;
return
NULL
;
...
@@ -256,8 +257,11 @@ PySymtable_BuildObject(mod_ty mod, PyObject *filename, PyFutureFeatures *future)
...
@@ -256,8 +257,11 @@ PySymtable_BuildObject(mod_ty mod, PyObject *filename, PyFutureFeatures *future)
PySymtable_Free
(
st
);
PySymtable_Free
(
st
);
return
NULL
;
return
NULL
;
}
}
st
->
recursion_depth
=
tstate
->
recursion_depth
*
COMPILER_STACK_FRAME_SCALE
;
/* Be careful here to prevent overflow. */
st
->
recursion_limit
=
Py_GetRecursionLimit
()
*
COMPILER_STACK_FRAME_SCALE
;
st
->
recursion_depth
=
(
tstate
->
recursion_depth
<
INT_MAX
/
COMPILER_STACK_FRAME_SCALE
)
?
tstate
->
recursion_depth
*
COMPILER_STACK_FRAME_SCALE
:
tstate
->
recursion_depth
;
st
->
recursion_limit
=
(
recursion_limit
<
INT_MAX
/
COMPILER_STACK_FRAME_SCALE
)
?
recursion_limit
*
COMPILER_STACK_FRAME_SCALE
:
recursion_limit
;
/* Make the initial symbol information gathering pass */
/* Make the initial symbol information gathering pass */
if
(
!
GET_IDENTIFIER
(
top
)
||
if
(
!
GET_IDENTIFIER
(
top
)
||
...
...
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