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
daca3d7e
Kaydet (Commit)
daca3d7e
authored
Agu 17, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM and
returns -1 (error) on integer overflow.
üst
7270b7f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
NEWS
Misc/NEWS
+3
-0
thread_pthread.h
Python/thread_pthread.h
+9
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
daca3d7e
...
...
@@ -10,6 +10,9 @@ Release date: TBA
Core and Builtins
-----------------
- Issue #22206: Using pthread, PyThread_create_key() now sets errno to ENOMEM
and returns -1 (error) on integer overflow.
- Issue #20184: Argument Clinic based signature introspection added for
30 of the builtin functions.
...
...
Python/thread_pthread.h
Dosyayı görüntüle @
daca3d7e
...
...
@@ -608,7 +608,15 @@ PyThread_create_key(void)
{
pthread_key_t
key
;
int
fail
=
pthread_key_create
(
&
key
,
NULL
);
return
fail
?
-
1
:
key
;
if
(
fail
)
return
-
1
;
if
(
key
>
INT_MAX
)
{
/* Issue #22206: handle integer overflow */
pthread_key_delete
(
key
);
errno
=
ENOMEM
;
return
-
1
;
}
return
(
int
)
key
;
}
void
...
...
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