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
845f7845
Kaydet (Commit)
845f7845
authored
Tem 25, 2013
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18556: Check the return value for PyUnicode_AsWideChar() in
U_set() from ctypes. CID #486657
üst
b76b1b1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
NEWS
Misc/NEWS
+3
-0
cfield.c
Modules/_ctypes/cfield.c
+5
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
845f7845
...
@@ -52,6 +52,9 @@ Core and Builtins
...
@@ -52,6 +52,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #18556: Check the return value of a PyUnicode_AsWideChar() call in
ctypes'
U_set
().
-
Issue
#
18549
:
Eliminate
dead
code
in
socket_ntohl
()
-
Issue
#
18549
:
Eliminate
dead
code
in
socket_ntohl
()
-
Issue
#
18514
:
Fix
unreachable
Py_DECREF
()
call
in
PyCData_FromBaseObj
()
-
Issue
#
18514
:
Fix
unreachable
Py_DECREF
()
call
in
PyCData_FromBaseObj
()
...
...
Modules/_ctypes/cfield.c
Dosyayı görüntüle @
845f7845
...
@@ -1260,7 +1260,11 @@ U_set(void *ptr, PyObject *value, Py_ssize_t length)
...
@@ -1260,7 +1260,11 @@ U_set(void *ptr, PyObject *value, Py_ssize_t length)
}
else
if
(
size
<
length
-
1
)
}
else
if
(
size
<
length
-
1
)
/* copy terminating NUL character if there is space */
/* copy terminating NUL character if there is space */
size
+=
1
;
size
+=
1
;
PyUnicode_AsWideChar
(
value
,
(
wchar_t
*
)
ptr
,
size
);
if
(
PyUnicode_AsWideChar
(
value
,
(
wchar_t
*
)
ptr
,
size
)
==
-
1
)
{
return
NULL
;
}
return
value
;
return
value
;
}
}
...
...
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