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
64234293
Kaydet (Commit)
64234293
authored
Agu 17, 2016
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 3.4 (#27783)
üst
379a3ffa
a12d92be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
NEWS
Misc/NEWS
+2
-0
_operator.c
Modules/_operator.c
+8
-8
No files found.
Misc/NEWS
Dosyayı görüntüle @
64234293
...
@@ -42,6 +42,8 @@ Library
...
@@ -42,6 +42,8 @@ Library
-
In
the
curses
module
,
raise
an
error
if
window
.
getstr
()
or
window
.
instr
()
is
-
In
the
curses
module
,
raise
an
error
if
window
.
getstr
()
or
window
.
instr
()
is
passed
a
negative
value
.
passed
a
negative
value
.
-
Issue
#
27783
:
Fix
possible
usage
of
uninitialized
memory
in
operator
.
methodcaller
.
-
Issue
#
27774
:
Fix
possible
Py_DECREF
on
unowned
object
in
_sre
.
-
Issue
#
27774
:
Fix
possible
Py_DECREF
on
unowned
object
in
_sre
.
-
Issue
#
27760
:
Fix
possible
integer
overflow
in
binascii
.
b2a_qp
.
-
Issue
#
27760
:
Fix
possible
integer
overflow
in
binascii
.
b2a_qp
.
...
...
Modules/_operator.c
Dosyayı görüntüle @
64234293
...
@@ -931,7 +931,7 @@ static PyObject *
...
@@ -931,7 +931,7 @@ static PyObject *
methodcaller_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kwds
)
methodcaller_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kwds
)
{
{
methodcallerobject
*
mc
;
methodcallerobject
*
mc
;
PyObject
*
name
,
*
newargs
;
PyObject
*
name
;
if
(
PyTuple_GET_SIZE
(
args
)
<
1
)
{
if
(
PyTuple_GET_SIZE
(
args
)
<
1
)
{
PyErr_SetString
(
PyExc_TypeError
,
"methodcaller needs at least "
PyErr_SetString
(
PyExc_TypeError
,
"methodcaller needs at least "
...
@@ -951,13 +951,7 @@ methodcaller_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
...
@@ -951,13 +951,7 @@ methodcaller_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
if
(
mc
==
NULL
)
if
(
mc
==
NULL
)
return
NULL
;
return
NULL
;
newargs
=
PyTuple_GetSlice
(
args
,
1
,
PyTuple_GET_SIZE
(
args
));
name
=
PyTuple_GET_ITEM
(
args
,
0
);
if
(
newargs
==
NULL
)
{
Py_DECREF
(
mc
);
return
NULL
;
}
mc
->
args
=
newargs
;
Py_INCREF
(
name
);
Py_INCREF
(
name
);
PyUnicode_InternInPlace
(
&
name
);
PyUnicode_InternInPlace
(
&
name
);
mc
->
name
=
name
;
mc
->
name
=
name
;
...
@@ -965,6 +959,12 @@ methodcaller_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
...
@@ -965,6 +959,12 @@ methodcaller_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
Py_XINCREF
(
kwds
);
Py_XINCREF
(
kwds
);
mc
->
kwds
=
kwds
;
mc
->
kwds
=
kwds
;
mc
->
args
=
PyTuple_GetSlice
(
args
,
1
,
PyTuple_GET_SIZE
(
args
));
if
(
mc
->
args
==
NULL
)
{
Py_DECREF
(
mc
);
return
NULL
;
}
PyObject_GC_Track
(
mc
);
PyObject_GC_Track
(
mc
);
return
(
PyObject
*
)
mc
;
return
(
PyObject
*
)
mc
;
}
}
...
...
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