Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQi5U-00000000JnT-3WQK for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Nov 2026 09:24:21 +0000 Received: from localhost ([127.0.0.1]:34812 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xQi5R-00000004bic-3Xe3 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Nov 2026 09:24:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:60418) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQi5R-00000004biT-21S5 for pgsql-bugs@lists.postgresql.org; Tue, 10 Nov 2026 09:24:17 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQi5J-00000000Afl-44dW for pgsql-bugs@lists.postgresql.org; Tue, 10 Nov 2026 09:24:11 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 906C47A6A8B for ; Tue, 10 Nov 2026 10:24:05 +0100 (CET) Received: from s981.loopia.se (unknown [172.22.191.6]) by s807.loopia.se (Postfix) with ESMTP id 81A5C7A6614; Tue, 10 Nov 2026 10:24:05 +0100 (CET) Received: from localhost (unknown [172.22.191.5]) by s981.loopia.se (Postfix) with ESMTP id 7FE4022B17C5; Tue, 10 Nov 2026 10:24:05 +0100 (CET) X-Virus-Scanned: amavis at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s473.loopia.se (amavis); dkim=pass (2048-bit key) header.d=yesql.se Received: from s980.loopia.se ([172.22.191.6]) by localhost (s473.loopia.se [172.22.190.13]) (amavis, port 10024) with LMTP id 76vXwzVGd8eb; Tue, 10 Nov 2026 10:24:05 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.236 Received: from smtpclient.apple (customer-89-255-232-236.stosn.net [89.255.232.236]) (Authenticated sender: daniel@yesql.se) by s980.loopia.se (Postfix) with ESMTPSA id F1418220165F; Tue, 10 Nov 2026 10:24:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1794302645; bh=x3d4YGyJClgaJCbePgp4I/1qfa/O1/lK6zr+LHScbEo=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=sGiqgGsDPzd/GBKaW5nhuhJW5vSTBX4ZlTycJ4iurg72hoMv/y7t/FI0TEHH83KVc By53F3RBSj6qpqP3CryEGaZVbznys58q3PrllqV5mxlnKqF1z7motG9FVywT+Ifei3 0NJuXj/6ochoTLSCX7L7erAL8YZ8QpPtggfk2xt6YCiLT22WvAXcnrCOwhFRjKIeLC 8WIYi7n2zt+37vQnATa9Y8+5yLyP/qH1ElFTavcgMRsgQU1h44MkvHPoDsaMZiPyMr KYzt9d2mssg36cQvkXhrOzJIzrT6pIO/61AIWkNRzEmWhYBXFSsmu9uGA77F5oAxO5 ArCVXOR3IRA8w== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.12\)) Subject: Re: BUG #19702: decode() accepts Base64 payload after terminal padding From: Daniel Gustafsson In-Reply-To: Date: Tue, 10 Nov 2026 10:23:54 +0100 Cc: shihao zhong , imchifan@163.com, pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <19702-9ed4a131fcfadb9d@postgresql.org> To: Masahiko Sawada X-Mailer: Apple Mail (2.3776.700.51.11.12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 9 Nov 2026, at 23:43, Masahiko Sawada = wrote: > Thank you for taking care of it. I was also reviewing the patches and > was about to send LGTM. +1 > While I agree that we don't backpatch it to v18 or older, I think it > (or at least the base64url part) should go into v19 as well. v19 is > still in RC and base64url is new in v19, so there are no existing > users relying on the current behavior, and it would be better to make > base64url and base32hex consistent before the release. That's a good point, I'll prepare a backpatch for 19 for the relevant = portions. -- Daniel Gustafsson