Use [re]palloc_array() in buffile.c and fd.c The code paths patched in this commit fix some of remnants not addressed by 1b105f9472bd. We should have more holes in the tree that could benefit from stronger type safety guarantees. These hypothetical holes could be addressed later; this finishes the job in storage/file/ for the backend code.
Author: Tristan Partin <[email protected]> Reviewed-by: Daniel Gustafsson <[email protected]> Reviewed-by: Sami Imseih <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/d64c805dea27d189904394ece7576762bece278c Modified Files -------------- src/backend/storage/file/buffile.c | 6 ++---- src/backend/storage/file/fd.c | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-)
