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
ef4fff34
Kaydet (Commit)
ef4fff34
authored
Tem 13, 2007
tarafından
Thomas Heller
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix for SF# 1649098: avoid zero-sized array declaration in structure.
üst
fa704c6a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
NEWS
Misc/NEWS
+3
-0
callbacks.c
Modules/_ctypes/callbacks.c
+1
-1
ctypes.h
Modules/_ctypes/ctypes.h
+1
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
ef4fff34
...
@@ -708,6 +708,9 @@ Library
...
@@ -708,6 +708,9 @@ Library
Extension
Modules
Extension
Modules
-----------------
-----------------
-
Bug
#
1649098
:
Avoid
declaration
of
zero
-
sized
array
declaration
in
structure
.
-
Removed
the
rgbimg
module
;
been
deprecated
since
Python
2.5
.
-
Removed
the
rgbimg
module
;
been
deprecated
since
Python
2.5
.
-
Bug
#
1721309
:
prevent
bsddb
module
from
freeing
random
memory
.
-
Bug
#
1721309
:
prevent
bsddb
module
from
freeing
random
memory
.
...
...
Modules/_ctypes/callbacks.c
Dosyayı görüntüle @
ef4fff34
...
@@ -268,7 +268,7 @@ ffi_info *AllocFunctionCallback(PyObject *callable,
...
@@ -268,7 +268,7 @@ ffi_info *AllocFunctionCallback(PyObject *callable,
ffi_abi
cc
;
ffi_abi
cc
;
nArgs
=
PySequence_Size
(
converters
);
nArgs
=
PySequence_Size
(
converters
);
p
=
(
ffi_info
*
)
PyMem_Malloc
(
sizeof
(
ffi_info
)
+
sizeof
(
ffi_type
)
*
(
nArgs
+
1
));
p
=
(
ffi_info
*
)
PyMem_Malloc
(
sizeof
(
ffi_info
)
+
sizeof
(
ffi_type
)
*
(
nArgs
));
if
(
p
==
NULL
)
{
if
(
p
==
NULL
)
{
PyErr_NoMemory
();
PyErr_NoMemory
();
return
NULL
;
return
NULL
;
...
...
Modules/_ctypes/ctypes.h
Dosyayı görüntüle @
ef4fff34
...
@@ -75,7 +75,7 @@ typedef struct {
...
@@ -75,7 +75,7 @@ typedef struct {
PyObject
*
callable
;
PyObject
*
callable
;
SETFUNC
setfunc
;
SETFUNC
setfunc
;
ffi_type
*
restype
;
ffi_type
*
restype
;
ffi_type
*
atypes
[
0
];
ffi_type
*
atypes
[
1
];
}
ffi_info
;
}
ffi_info
;
typedef
struct
{
typedef
struct
{
...
...
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