Convert code to use Xmumallocarray() & reallocarray()

Provides automatic integer overflow checking in allocation size calculations

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
6 jobs for misc in 2 minutes and 6 seconds (queued for 2 seconds)