Re: BUG #18891: /src/include/lib/simplehash.h possible palloc0 problems - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #18891: /src/include/lib/simplehash.h possible palloc0 problems
Date
Msg-id 537550.1744308279@sss.pgh.pa.us
Whole thread Raw
In response to BUG #18891: /src/include/lib/simplehash.h possible palloc0 problems  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> On line 1080 there is an initiallization of array with the usage of palloc0.
> On the server side there is no problem as the server version of palloc never
> returns NULL. However simplehash is used in some utils: pg_dump,
> pg_verifybackup, pg_rewind. It seems these utils use the frontend version of
> palloc. Therefore it is required to add a NULL check if FRONTEND macro is
> defined.

Have you read the frontend version of palloc?

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #18890: /src/timezone/localtime.c condition always false
Next
From: "Euler Taveira"
Date:
Subject: Re: BUG #18888: /src/interfaces/ecpg/preproc/descriptor.c possible NULL dereference