From 91f7297635c5dee6187471057bcea02b5c57bdc6 Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Sat, 5 Feb 2022 19:14:23 -0800 Subject: [PATCH 1/2] bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c --- Modules/_hashopenssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index fb155b2e622531..bb9487204e7415 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -266,6 +266,7 @@ _setException(PyObject *exc, const char* altmsg, ...) } else { PyErr_FormatV(exc, altmsg, vargs); } + va_end(vargs); return NULL; } va_end(vargs); From 4c67ecd73454656d389db4ea8c63fec8f4684cf8 Mon Sep 17 00:00:00 2001 From: Zackery Spytz Date: Sun, 6 Feb 2022 23:09:55 -0800 Subject: [PATCH 2/2] News entry. --- .../Core and Builtins/2022-02-06-23-08-30.bpo-40479.zED3Zu.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2022-02-06-23-08-30.bpo-40479.zED3Zu.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2022-02-06-23-08-30.bpo-40479.zED3Zu.rst b/Misc/NEWS.d/next/Core and Builtins/2022-02-06-23-08-30.bpo-40479.zED3Zu.rst new file mode 100644 index 00000000000000..52701d53d8fe21 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2022-02-06-23-08-30.bpo-40479.zED3Zu.rst @@ -0,0 +1 @@ +Add a missing call to ``va_end()`` in ``Modules/_hashopenssl.c``.