Re: BUG #14927: Unchecked SearchSysCache1() return value

From: PanBian <bianpan2016(at)163(dot)com>
To: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14927: Unchecked SearchSysCache1() return value
Date: 2017-11-27 11:34:51
Message-ID: 20171127113451.GA30475@bp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, Nov 27, 2017 at 07:20:51PM +0900, Amit Langote wrote:
> On 2017/11/27 18:01, bianpan2016(at)163(dot)com wrote:
> > The following bug has been logged on the website:
> >
> > Bug reference: 14927
> > Logged by: Pan Bian
> > Email address: bianpan2016(at)163(dot)com
> > PostgreSQL version: 10.1
> > Operating system: Linux
> > Description:
> >
>
> Thanks for the report. Attached a patch that adds a check that tuple is
> valid before trying to dereference it.
>
> Thanks,
> Amit

Got it. These patches fixes the bug.

Thanks,
Pan Bian

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PanBian 2017-11-27 11:36:52 Re: BUG #14928: Unchecked SearchSysCacheCopy1() return value
Previous Message Michael Paquier 2017-11-27 11:20:30 Re: BUG #14929: Unchecked AllocateDir() return value in restoreTwoPhaseData()