Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b7a28008
Commit
b7a28008
authored
Sep 11, 2012
by
Jesus Cea
Browse files
Options
Browse Files
Download
Plain Diff
MERGE: Closes #15793: Stack corruption in ssl.RAND_egd()
parents
67bd81b8
c8754a13
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+2
-6
Misc/NEWS
Misc/NEWS
+3
-0
Modules/_ssl.c
Modules/_ssl.c
+1
-1
No files found.
Lib/test/test_ssl.py
View file @
b7a28008
...
...
@@ -125,12 +125,8 @@ class BasicSocketTests(unittest.TestCase):
else
:
self
.
assertRaises
(
ssl
.
SSLError
,
ssl
.
RAND_bytes
,
16
)
try
:
ssl
.
RAND_egd
(
1
)
except
TypeError
:
pass
else
:
print
(
"didn't raise TypeError"
)
self
.
assertRaises
(
TypeError
,
ssl
.
RAND_egd
,
1
)
self
.
assertRaises
(
TypeError
,
ssl
.
RAND_egd
,
'foo'
,
1
)
ssl
.
RAND_add
(
"this is a random string"
,
75.0
)
def
test_parse_cert
(
self
):
...
...
Misc/NEWS
View file @
b7a28008
...
...
@@ -210,6 +210,9 @@ Library
-
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
)
for
certain
locales
(
utf
-
16
and
utf
-
32
family
).
Patch
by
Chris
Jerdonek
.
...
...
Modules/_ssl.c
View file @
b7a28008
...
...
@@ -2481,7 +2481,7 @@ PySSL_RAND_egd(PyObject *self, PyObject *args)
PyObject
*
path
;
int
bytes
;
if
(
!
PyArg_ParseTuple
(
args
,
"O&
|i
:RAND_egd"
,
if
(
!
PyArg_ParseTuple
(
args
,
"O&:RAND_egd"
,
PyUnicode_FSConverter
,
&
path
))
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