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
5061e67f
Kaydet (Commit)
5061e67f
authored
Mar 02, 2015
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 3.3 (#23367)
üst
3f9e3810
b779bfba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
NEWS
Misc/NEWS
+2
-0
unicodedata.c
Modules/unicodedata.c
+10
-3
No files found.
Misc/NEWS
Dosyayı görüntüle @
5061e67f
...
@@ -53,6 +53,8 @@ Library
...
@@ -53,6 +53,8 @@ Library
-
Issue
#
23421
:
Fixed
compression
in
tarfile
CLI
.
Patch
by
wdv4758h
.
-
Issue
#
23421
:
Fixed
compression
in
tarfile
CLI
.
Patch
by
wdv4758h
.
-
Issue
#
23367
:
Fix
possible
overflows
in
the
unicodedata
module
.
-
Issue
#
23361
:
Fix
possible
overflow
in
Windows
subprocess
creation
code
.
-
Issue
#
23361
:
Fix
possible
overflow
in
Windows
subprocess
creation
code
.
Build
Build
...
...
Modules/unicodedata.c
Dosyayı görüntüle @
5061e67f
...
@@ -553,10 +553,17 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
...
@@ -553,10 +553,17 @@ nfd_nfkd(PyObject *self, PyObject *input, int k)
stackptr
=
0
;
stackptr
=
0
;
isize
=
PyUnicode_GET_LENGTH
(
input
);
isize
=
PyUnicode_GET_LENGTH
(
input
);
space
=
isize
;
/* Overallocate at most 10 characters. */
/* Overallocate at most 10 characters. */
space
=
(
isize
>
10
?
10
:
isize
)
+
isize
;
if
(
space
>
10
)
{
if
(
space
<=
PY_SSIZE_T_MAX
-
10
)
space
+=
10
;
}
else
{
space
*=
2
;
}
osize
=
space
;
osize
=
space
;
output
=
PyMem_N
ew
(
Py_UCS4
,
space
);
output
=
PyMem_N
EW
(
Py_UCS4
,
space
);
if
(
!
output
)
{
if
(
!
output
)
{
PyErr_NoMemory
();
PyErr_NoMemory
();
return
NULL
;
return
NULL
;
...
@@ -703,7 +710,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
...
@@ -703,7 +710,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
/* We allocate a buffer for the output.
/* We allocate a buffer for the output.
If we find that we made no changes, we still return
If we find that we made no changes, we still return
the NFD result. */
the NFD result. */
output
=
PyMem_N
ew
(
Py_UCS4
,
len
);
output
=
PyMem_N
EW
(
Py_UCS4
,
len
);
if
(
!
output
)
{
if
(
!
output
)
{
PyErr_NoMemory
();
PyErr_NoMemory
();
Py_DECREF
(
result
);
Py_DECREF
(
result
);
...
...
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