CHECK_BODY("malloc-nomem1") {
result = (mi_malloc((size_t)PTRDIFF_MAX + (size_t)1) == NULL);
};
I think that it was broken by 78418b3d24423d000cf08865c75185ce1acfefa7 (#877). If I edit the huge allocation check at the beginning of mi_find_page back to use PTRDIFF_MAX, the test is passing. However, I'm not sure what the correct behaviour is supposed to be.
In mimalloc 2.1.4,
malloc-nomem1
intest-api
fails.I think that it was broken by 78418b3d24423d000cf08865c75185ce1acfefa7 (#877). If I edit the huge allocation check at the beginning of
mi_find_page
back to use PTRDIFF_MAX, the test is passing. However, I'm not sure what the correct behaviour is supposed to be.