Re: Avoid possible dereference null pointer (src/bin/pg_dump/pg_dump.c)

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, daniel(at)yesql(dot)se
Subject: Re: Avoid possible dereference null pointer (src/bin/pg_dump/pg_dump.c)
Date: 2024-09-04 17:30:01
Message-ID: ZtiZGULO70tDCZ3k@nathan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message 陈宗志 2024-09-04 17:37:34 Re: AIO v2.0
Previous Message Alena Rybakina 2024-09-04 17:23:00 Re: Vacuum statistics