Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJHhf-00068E-1J for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Nov 2017 11:35:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJHhe-0004Ga-J6 for pgsql-bugs@arkaria.postgresql.org; Mon, 27 Nov 2017 11:35:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eJHgz-0004BS-B0 for pgsql-bugs@lists.postgresql.org; Mon, 27 Nov 2017 11:35:18 +0000 Received: from m12-17.163.com ([220.181.12.17]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eJHgu-0005I4-8S for pgsql-bugs@postgresql.org; Mon, 27 Nov 2017 11:35:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=Ts3Bm JHdYg0t7OZcIaX1FKzhE0zV3kEbx1Vh8BE+h68=; b=lzf9weTYpfwgodRyylgjd g2UfwWsInFU/YBGmLBgqXDDN299nQzodIirD+KCalSxA3reFRGe7HXElARu/viFo Dtf/46ftIi4PzTc5rNvuBgPFvfC9Pkz9OrKmmh+9Ha8ddd8ZkhDWVqAz4f8aoUuu W4UdOz9+RVQ7qyusbi0mU4= Received: from bp (unknown [106.120.213.112]) by smtp13 (Coremail) with SMTP id EcCowAB3ZZZc+BtaTH70BQ--.31802S2; Mon, 27 Nov 2017 19:34:52 +0800 (CST) Date: Mon, 27 Nov 2017 19:34:51 +0800 From: PanBian To: Amit Langote Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14927: Unchecked SearchSysCache1() return value Message-ID: <20171127113451.GA30475@bp> Reply-To: PanBian References: <20171127090105.1463.3962@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CM-TRANSID: EcCowAB3ZZZc+BtaTH70BQ--.31802S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxU4O6JUUUUU X-Originating-IP: [106.120.213.112] X-CM-SenderInfo: held01tdqsiiqw6rljoofrz/xtbBZBydclQG+dC0pwAAs- List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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