Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dGg93-00068e-2M for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Jun 2017 06:33:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dGg92-0002br-40 for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Jun 2017 06:33:12 +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 1dGg8K-0000NK-FV for pgsql-bugs@postgresql.org; Fri, 02 Jun 2017 06:32:28 +0000 Received: from mail-pf0-x22e.google.com ([2607:f8b0:400e:c00::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dGg8D-0000G1-OS for pgsql-bugs@postgresql.org; Fri, 02 Jun 2017 06:32:27 +0000 Received: by mail-pf0-x22e.google.com with SMTP id e193so48304446pfh.0 for ; Thu, 01 Jun 2017 23:32:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IWs2S1iLQKsJNB2CwV2rRKrmJbLtwFO/Fh38Y9EOPos=; b=eLNDbE6pSF0yUl/CeniBdszpa5TxjgEhNUjo3ATBcg7NNPNHszb7ae8ZDQWg9wREbw 7QSEHRamUscIhagMl/dlTFYcPoEZ8EoOnBVzv4eIujxxe34w2Vdy0y17B3fmaj0sbZwD u5Kg+ELQURxmi9TMLLew/ayPWpCIZq4hRBjiI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IWs2S1iLQKsJNB2CwV2rRKrmJbLtwFO/Fh38Y9EOPos=; b=dl9DEisVH3piu7oRsFHGkOvZetooNMl5XQXzuCusCjfHwJf48+dVdidSrOFxtLx7YL Pol51fqcFUMvTntBhPI4UPNT9htVKX06s5z73JgJAZ767EsRG4ef/iKSv5yyPCQCPjNf ZvjYX+LEPVCPeZt9N54FNXq3aukrPSEsILlBQ4adOjMGH3GAIce8r4qElW5vmzmuUmgu clZioPAtWbD40Qa3q2I6DQ8tdJKl4bJoIWdVoUbbDoemuOfNB7Prs2bLRJNB6v0WDHdn NxhU93M+F0BYYZBqf+tPA8/g4GxUGEFbWe5VzNwzGHasgyQOeKFFr1NxV1pJXI4wI0dD 2Y2A== X-Gm-Message-State: AODbwcCkmR8Z2cACyb+eShh0J4DUVBXcyFtHF4mg2gVseK+jeBDfWT5y +15snu9vwy1NyGFv X-Received: by 10.84.218.72 with SMTP id f8mr13811029plm.33.1496385140312; Thu, 01 Jun 2017 23:32:20 -0700 (PDT) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id k86sm37725790pfk.125.2017.06.01.23.32.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jun 2017 23:32:19 -0700 (PDT) Date: Thu, 1 Jun 2017 23:32:16 -0700 From: Noah Misch To: Tom Lane Cc: Michael Paquier , Alvaro Herrera , Daniele Varrazzo , pgsql-bugs Subject: Re: [PATCH] Fixed malformed error message on malformed SCRAM message. Message-ID: <20170602063216.GE1500331@rfd.leadboat.com> References: <20170529214021.kaw5qjzsbofaa6re@alvherre.pgsql> <20170602055742.GA1502070@rfd.leadboat.com> <27186.1496384400@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <27186.1496384400@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Fri, Jun 02, 2017 at 02:20:00AM -0400, Tom Lane wrote: > BTW, since you mention COMMERROR uses in auth.c, isn't the usage at > line 687 wrong? It sure looks like the author supposed that that > ereport call wouldn't return, but it will. Adjacent similar calls > clean up and return NULL. Probably, though one could argue for proceeding with the short password. Deserves a comment if log-only is intentional. The lack of an exit after COMMERROR "client selected an invalid SASL authentication mechanism" looks like a bug. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs