mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153)
va_end() must be called before returning.
(cherry picked from commit 59e004af63
)
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
parent
1b8a34ae65
commit
0892a0e3ec
2 changed files with 2 additions and 0 deletions
|
@ -311,6 +311,7 @@ _setException(PyObject *exc, const char* altmsg, ...)
|
|||
} else {
|
||||
PyErr_FormatV(exc, altmsg, vargs);
|
||||
}
|
||||
va_end(vargs);
|
||||
return NULL;
|
||||
}
|
||||
va_end(vargs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue