I was reading some buffile.c code, and I noticed some hand-rolled
versions of repalloc_array() (minus the multiplication check). Since we
already have one usage of repalloc_array() in buffile.c for
BufFile::files, I figured it would probably be alright if we used it in
the other two locations as well.
--
Tristan Partin
PostgreSQL Contributors Team
AWS (https://aws.amazon.com)