-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
wchar_t **parts = (wchar_t **)PyMem_Malloc(n * sizeof(wchar_t *));
memset(parts, 0, n * sizeof(wchar_t *));The return value of PyMem_Malloc not checked for NULL and dereferenced after it in memset()
Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Eclips4 and TERESH1
Metadata
Metadata
Assignees
Labels
3.11only security fixesonly security fixes3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error