Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fyNc5-00015j-0c for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Sep 2018 20:44:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fyNc2-0004lJ-EV for pgsql-bugs@arkaria.postgresql.org; Fri, 07 Sep 2018 20:44:18 +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.89) (envelope-from ) id 1fyNc0-0004lC-U2 for pgsql-bugs@lists.postgresql.org; Fri, 07 Sep 2018 20:44:18 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fyNbs-0004Pa-Et for pgsql-bugs@lists.postgresql.org; Fri, 07 Sep 2018 20:44:15 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6F5C7218EB; Fri, 7 Sep 2018 16:44:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 07 Sep 2018 16:44:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=NSWxhZZubpMDWQaupVOKhhtd3BlE3IjJMJLdguEj8zY=; b=WNZMMdi8 Bt94l9kI1LP88QK93LyUm6LPzfcoOFeqlXvuwfTp7b8Rdn2Up0yT6IE0um8am2DG 8ehE6CIQBiqVlYtDN+1sykb550qlMVN+/YPZmRftKpw7LxWIpB5sBBZl/khTWg39 iQ2t/uykR3YGFOJdrM1hp+AXEK8d3nLxP8ls/jJ++Dkad5H5UrKWq7SBr8Q46+qR d1KPG4Nv2Q33MSz4jlRxCaV0aw/37T7+gjPz+/qno3ur4mvt+jlhsjigD+iCDhcu sxLKq+YSYQqCAmBngQBFaMyNFbzKSLWFnM+L7zwUr5FnWw/XIKIzyh62ynqZShDS OAZ2/9YD12dkBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=NSWxhZZubpMDWQaupVOKhhtd3BlE3 IjJMJLdguEj8zY=; b=HMrIhE9yzu+XBG/fQX9IBPU8+1aC0kbfKrnQO0htWgUsZ nl7cRtLhMQJWUyTIsqnUNY9porziQ+ptvnrjRDAp5w1Zu0tizNZMvVIz1SZr7uU3 gPdrYD+csW2yJZvKWnklIY0cl/VwYTmI7Aji9JQ0iWwZ7SE/L86egEGzfmEQtfJS uFSGHwQYPGPZ9LJTfjFtMDzlpRtX0CPSBZTiCCH4edeP1/rpZ22qmeiEXkeUzo04 CgTOhDItilhCM0q6TRuVyEplKK4dKwzRocrH7O5DIPSdiAQ3sBlexiozi/HqTpEC ys4trqx4NKofGpFnWBUw46p9tsZ505pTSHN7s2Law== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (unknown [50.233.106.125]) by mail.messagingengine.com (Postfix) with ESMTPA id B2EDBE4508; Fri, 7 Sep 2018 16:44:05 -0400 (EDT) Date: Fri, 7 Sep 2018 13:44:03 -0700 From: Michael Paquier To: Tom Lane Cc: Jeremy Evans , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15367: Crash in pg_fe_scram_free when using foreign tables Message-ID: <20180907204403.GC32058@paquier.xyz> References: <153626613985.23143.4743626885618266803@wrigleys.postgresql.org> <20180906215836.GP2726@paquier.xyz> <20180906222843.GF17425@jeremyevans.local> <20180907165103.GH17425@jeremyevans.local> <20180907175518.GI17425@jeremyevans.local> <20180907181522.GB32058@paquier.xyz> <20016.1536351535@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+nBD6E3TurpgldQp" Content-Disposition: inline In-Reply-To: <20016.1536351535@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --+nBD6E3TurpgldQp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 07, 2018 at 04:18:55PM -0400, Tom Lane wrote: > I had been studying that when the report first arrived. I'm not really > happy with the coding in pg_saslprep(): it leaves garbage in its output > parameter in some code paths, and I think it leaks memory in others. Agreed. Do you want to give it a go? I can see some of those code paths? Likely you spotted more. > But I couldn't see a path that would lead to the observed failure. Agreed. -- Michael --+nBD6E3TurpgldQp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAluS4xMACgkQnvQgOdby QH0I4Q/9FOEA+qxpWtvTbbSuuW+tNEqEfY9kiwxTLpptQxqp3h3Iu0LXQdExwBgi MFWuhNcahKi32o2E6JCDtk0WF2UsMKrJ6ldH583e/cleLjHZmDFX2/Bm58RUC+dh CbjmFKxVx3eOKlJc4SMqQebOJiFhqWPbIpmAlHEf9SOZcqJk2XPKJZWQMZvnNN+A r5oZY5u2hS8TMMEkq1jK+sqDF0AsBn/KxZtz+Nz6N/f9SLEU9OMo/ltCfnlxYFCH dLJUnTBqmh8fQcwer6jjFADq+95VtGrCg68U/5/OyEN5mGp7fMNTLVS2HfPwf3wf D8uuAiHUbNUyNKC28gcNHbT9TlnUNHj8EgQ7vCADPYUUT41bLx3EBKvwpSUJjHPi B2H4zJY/Xn52qe11VVmH2ORvFoJawWU/JY+jmI8ZTdokXifWK26gmBmOfz02IWMr zxQXdyWC+ikA5teW00yC23tujVIPDKTDouEnla9aj0Bw5tPImY2mMm5/JI0MOuJX kUoRTHpro1v8EFvMG0Pa0CcVzwDIQuB4JzipmB3fxS9DSXLmrqeBelkv6QOpdMVc 5GDJCwX8CM0QWdojcAy7d68R+4Jop4idMBNM0SYvbYDxKBJYxTHqSO8qGPh0RguZ pD8n4Drd6OOwlMrXbXnQ73aHYY3z5fYEsSXwtOoPs3vqpkoRE4A= =wl1w -----END PGP SIGNATURE----- --+nBD6E3TurpgldQp--