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
c8754a13
Kaydet (Commit)
c8754a13
authored
Eyl 11, 2012
tarafından
Jesus Cea
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Closes #15793: Stack corruption in ssl.RAND_egd()
üst
e8db356c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
test_ssl.py
Lib/test/test_ssl.py
+2
-6
NEWS
Misc/NEWS
+3
-0
_ssl.c
Modules/_ssl.c
+1
-1
No files found.
Lib/test/test_ssl.py
Dosyayı görüntüle @
c8754a13
...
@@ -103,12 +103,8 @@ class BasicSocketTests(unittest.TestCase):
...
@@ -103,12 +103,8 @@ class BasicSocketTests(unittest.TestCase):
sys
.
stdout
.
write
(
"
\n
RAND_status is
%
d (
%
s)
\n
"
sys
.
stdout
.
write
(
"
\n
RAND_status is
%
d (
%
s)
\n
"
%
(
v
,
(
v
and
"sufficient randomness"
)
or
%
(
v
,
(
v
and
"sufficient randomness"
)
or
"insufficient randomness"
))
"insufficient randomness"
))
try
:
self
.
assertRaises
(
TypeError
,
ssl
.
RAND_egd
,
1
)
ssl
.
RAND_egd
(
1
)
self
.
assertRaises
(
TypeError
,
ssl
.
RAND_egd
,
'foo'
,
1
)
except
TypeError
:
pass
else
:
print
(
"didn't raise TypeError"
)
ssl
.
RAND_add
(
"this is a random string"
,
75.0
)
ssl
.
RAND_add
(
"this is a random string"
,
75.0
)
def
test_parse_cert
(
self
):
def
test_parse_cert
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
c8754a13
...
@@ -154,6 +154,9 @@ Library
...
@@ -154,6 +154,9 @@ Library
- Issue #13579: string.Formatter now understands the 'a' conversion specifier.
- Issue #13579: string.Formatter now understands the 'a' conversion specifier.
- Issue #15793: Stack corruption in ssl.RAND_egd().
Patch by Serhiy Storchaka.
- Issue #15595: Fix subprocess.Popen(universal_newlines=True)
- Issue #15595: Fix subprocess.Popen(universal_newlines=True)
for certain locales (utf-16 and utf-32 family). Patch by Chris Jerdonek.
for certain locales (utf-16 and utf-32 family). Patch by Chris Jerdonek.
...
...
Modules/_ssl.c
Dosyayı görüntüle @
c8754a13
...
@@ -1917,7 +1917,7 @@ PySSL_RAND_egd(PyObject *self, PyObject *args)
...
@@ -1917,7 +1917,7 @@ PySSL_RAND_egd(PyObject *self, PyObject *args)
PyObject
*
path
;
PyObject
*
path
;
int
bytes
;
int
bytes
;
if
(
!
PyArg_ParseTuple
(
args
,
"O&
|i
:RAND_egd"
,
if
(
!
PyArg_ParseTuple
(
args
,
"O&:RAND_egd"
,
PyUnicode_FSConverter
,
&
path
))
PyUnicode_FSConverter
,
&
path
))
return
NULL
;
return
NULL
;
...
...
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