mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Closes #15793: Stack corruption in ssl.RAND_egd()
This commit is contained in:
parent
e8db356cf1
commit
c8754a13e6
3 changed files with 6 additions and 7 deletions
|
@ -103,12 +103,8 @@ class BasicSocketTests(unittest.TestCase):
|
|||
sys.stdout.write("\n RAND_status is %d (%s)\n"
|
||||
% (v, (v and "sufficient randomness") or
|
||||
"insufficient randomness"))
|
||||
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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue