On Wed Mar 19 07:21:54 2025 +0000, Mohamad Al-Jaf wrote:
I'm not sure what you mean by corner case, the test fails on i386 because 0xdeadbeef is too big of an allocation. In any case, letting malloc handle it makes the check unnecessary.
I meant, is it useful to check memory allocation limits here. I think a test with a smaller, non zero, size to check how capacity and length work would be more reasonable, and less subject to random failures depending on the available RAM.