Let's systematically make use of reallocarray() whereever we invoke realloc() with a product of two values.