On Fri, Jul 31, 2026 at 08:42:21AM +0900, Michael Paquier wrote:
> The reason why these holes exist is that the patch series of
> 1b105f9472bdb was quite large, so I have been focusing mainly on
> making sure that all the suggested changes were right instead of
> trying to fix all of them.  The long term picture is that we should do
> the switch to do more type enforcements, and that this work is
> incremental.
> 
> Saying all that, the proposed patch makes sense, and this is
> incremental work, so I am going to apply it.

By the way, just mentioning two of these holes, using the following
command in src/backend/storage/file/:
$ git grep -A 2 "alloc(" | grep sizeof
fd.c: fd = (int *) palloc(size * sizeof(int));
fd.c: fd = (int *) repalloc(fd, size * sizeof(int));

Switched these extra two spots, while on it, and applied the result.
--
Michael

Attachment: signature.asc
Description: PGP signature

Reply via email to