Thread: Re: Avoid possible dereference null pointer (src/bin/pg_dump/pg_dump.c)
On Wed, Sep 04, 2024 at 02:10:28PM -0300, Ranier Vilela wrote: > I think that commit 6ebeeae > <http://6ebeeae29626e742bbe16db3fa6fccf1186c0dfb> left out an oversight. > > The report is: > CID 1559991: (#1 of 1): Dereference null return value (NULL_RETURNS) > > The function *findTypeByOid* can return NULL. > It is necessary to check the function's return, > as is already done in other parts of the source. > > patch attached. Yeah, that looks like a problem to me. I've cc'd Daniel here. -- nathan
Re: Avoid possible dereference null pointer (src/bin/pg_dump/pg_dump.c)
From
Daniel Gustafsson
Date:
> On 4 Sep 2024, at 19:30, Nathan Bossart <nathandbossart@gmail.com> wrote: > > On Wed, Sep 04, 2024 at 02:10:28PM -0300, Ranier Vilela wrote: >> I think that commit 6ebeeae >> <http://6ebeeae29626e742bbe16db3fa6fccf1186c0dfb> left out an oversight. >> >> The report is: >> CID 1559991: (#1 of 1): Dereference null return value (NULL_RETURNS) >> >> The function *findTypeByOid* can return NULL. >> It is necessary to check the function's return, >> as is already done in other parts of the source. >> >> patch attached. > > Yeah, that looks like a problem to me. I've cc'd Daniel here. Thanks for the report, it does seem genuine to me too. I'll get that handled later today. -- Daniel Gustafsson
Re: Avoid possible dereference null pointer (src/bin/pg_dump/pg_dump.c)
From
Daniel Gustafsson
Date:
> On 4 Sep 2024, at 20:35, Daniel Gustafsson <daniel@yesql.se> wrote: >> On 4 Sep 2024, at 19:30, Nathan Bossart <nathandbossart@gmail.com> wrote: >> On Wed, Sep 04, 2024 at 02:10:28PM -0300, Ranier Vilela wrote: >>> patch attached. >> >> Yeah, that looks like a problem to me. I've cc'd Daniel here. > > Thanks for the report, it does seem genuine to me too. I'll get that handled > later today. Applied, thanks! -- Daniel Gustafsson
Em qui., 5 de set. de 2024 às 10:39, Daniel Gustafsson <daniel@yesql.se> escreveu:
> On 4 Sep 2024, at 20:35, Daniel Gustafsson <daniel@yesql.se> wrote:
>> On 4 Sep 2024, at 19:30, Nathan Bossart <nathandbossart@gmail.com> wrote:
>> On Wed, Sep 04, 2024 at 02:10:28PM -0300, Ranier Vilela wrote:
>>> patch attached.
>>
>> Yeah, that looks like a problem to me. I've cc'd Daniel here.
>
> Thanks for the report, it does seem genuine to me too. I'll get that handled
> later today.
Applied, thanks!
Thank you Daniel.
best regards,
Ranier Vilela