Bug report
Bug description:
test_initconfig_get_api (Programs/_testembed.c) executes the code
assert(PyInitConfig_GetStrList(config, "xoptions", &length, &items) == 0);
assert(length == 0);
PyInitConfig_GetStrList has malloc
*items = malloc(list->length * sizeof(char*));
if length is zero the behavior of malloc(0) is implementation defined, this seems to be problematic on platforms where malloc of zero returns NULL.
CPython versions tested on:
3.14
Operating systems tested on:
Other
Bug report
Bug description:
test_initconfig_get_api (Programs/_testembed.c) executes the code
PyInitConfig_GetStrList has malloc
if length is zero the behavior of malloc(0) is implementation defined, this seems to be problematic on platforms where malloc of zero returns NULL.
CPython versions tested on:
3.14
Operating systems tested on:
Other