Per https://vorpus.org/blog/why-does-calloc-exist/ I switched from using malloc() to calloc() to avoid overflow. The fact that it might be faster than malloc()/memset() isn't a factor here (although there is one case where that happened that this change changed).