mirror of
https://github.com/python/cpython.git
synced 2025-11-21 11:19:43 +00:00
Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom().
This commit is contained in:
parent
314bef9fff
commit
74bb783c2f
2 changed files with 4 additions and 1 deletions
|
|
@ -41,6 +41,9 @@ Library
|
||||||
Extension Modules
|
Extension Modules
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
|
- Bug #1551427: fix a wrong NULL pointer check in the win32 version
|
||||||
|
of os.urandom().
|
||||||
|
|
||||||
- Bug #1548092: fix curses.tparm seg fault on invalid input.
|
- Bug #1548092: fix curses.tparm seg fault on invalid input.
|
||||||
|
|
||||||
- Bug #1550714: fix SystemError from itertools.tee on negative value for n.
|
- Bug #1550714: fix SystemError from itertools.tee on negative value for n.
|
||||||
|
|
|
||||||
|
|
@ -7877,7 +7877,7 @@ win32_urandom(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
pCryptGenRandom = (CRYPTGENRANDOM)GetProcAddress(
|
pCryptGenRandom = (CRYPTGENRANDOM)GetProcAddress(
|
||||||
hAdvAPI32, "CryptGenRandom");
|
hAdvAPI32, "CryptGenRandom");
|
||||||
if (pCryptAcquireContext == NULL)
|
if (pCryptGenRandom == NULL)
|
||||||
return PyErr_Format(PyExc_NotImplementedError,
|
return PyErr_Format(PyExc_NotImplementedError,
|
||||||
"CryptGenRandom not found");
|
"CryptGenRandom not found");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue