Open kbridge opened 1 year ago
https://github.com/srdja/Collections-C/blob/5285da8dcd3dbfe32f960abc7bf287db0d2600c5/src/cc_array.c#L479
Because ar->capacity * sizeof(void*) can overflow. Should use ar->mem_calloc.
ar->capacity * sizeof(void*)
ar->mem_calloc
https://github.com/srdja/Collections-C/blob/5285da8dcd3dbfe32f960abc7bf287db0d2600c5/src/cc_array.c#L479
Because
ar->capacity * sizeof(void*)
can overflow. Should usear->mem_calloc
.