Re: BUG #14927: Unchecked SearchSysCache1() return value - Mailing list pgsql-bugs

From PanBian
Subject Re: BUG #14927: Unchecked SearchSysCache1() return value
Date
Msg-id 20171127113451.GA30475@bp
Whole thread Raw
In response to Re: BUG #14927: Unchecked SearchSysCache1() return value  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-bugs
On Mon, Nov 27, 2017 at 07:20:51PM +0900, Amit Langote wrote:
> On 2017/11/27 18:01, bianpan2016@163.com wrote:
> > The following bug has been logged on the website:
> > 
> > Bug reference:      14927
> > Logged by:          Pan Bian
> > Email address:      bianpan2016@163.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




pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #14929: Unchecked AllocateDir() return value in restoreTwoPhaseData()
Next
From: PanBian
Date:
Subject: Re: BUG #14928: Unchecked SearchSysCacheCopy1() return value