]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42814: Fix undefined behavior in Objects/genericaliasobject.c (GH-24073)
authorZackery Spytz <zspytz@gmail.com>
Sun, 3 Jan 2021 12:18:25 +0000 (05:18 -0700)
committerGitHub <noreply@github.com>
Sun, 3 Jan 2021 12:18:25 +0000 (13:18 +0100)
commit5d3553b0a8959e7505bbec4de03077dbf135ee4b
treea8d80f5ee428e69ab4e05043aeaa736159b721af
parent9e8fe1986cb4205fb9f883c89b9d5d76a9847e0b
bpo-42814: Fix undefined behavior in Objects/genericaliasobject.c (GH-24073)

In is_typing_name(), va_end() is not always called before the
function returns.  It is undefined behavior to call va_start()
without also calling va_end().
Misc/NEWS.d/next/Core and Builtins/2021-01-03-04-41-25.bpo-42814.sDvVbb.rst [new file with mode: 0644]
Objects/genericaliasobject.c