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.96) (envelope-from ) id 1vs3EG-002tnJ-0E for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Feb 2026 18:21:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vs3ED-004oiX-2Y for pgsql-bugs@arkaria.postgresql.org; Mon, 16 Feb 2026 18:21:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vs3ED-004oiP-1l for pgsql-bugs@lists.postgresql.org; Mon, 16 Feb 2026 18:21:49 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vs3EB-00000000vtp-1J0g for pgsql-bugs@lists.postgresql.org; Mon, 16 Feb 2026 18:21:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 61GILjFK1157954; Mon, 16 Feb 2026 13:21:46 -0500 From: Tom Lane To: Noah Misch cc: Thomas Munro , ranvis@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19406: substring(text) fails on valid UTF-8 toasted value in PostgreSQL 15.16 In-reply-to: <20260214224621.26.noahmisch@microsoft.com> References: <19406-9867fddddd724fca@postgresql.org> <20260213172702.71@rfd.leadboat.com> <20260213224804.2c@rfd.leadboat.com> <20260214002113.1f.noahmisch@microsoft.com> <20260214053821.fa.noahmisch@microsoft.com> <20260214193344.48@rfd.leadboat.com> <20260214224621.26.noahmisch@microsoft.com> Comments: In-reply-to Noah Misch message dated "Sat, 14 Feb 2026 14:46:21 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1157952.1771266105.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 16 Feb 2026 13:21:45 -0500 Message-ID: <1157953.1771266105@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Noah Misch writes: > Pushed as commit 9f4fd11 Various BF animals are complaining varlena.c: In function 'text_substring': varlena.c:590:9: warning: 'E' may be used uninitialized in this function [= -Wmaybe-uninitialized] int32 E; /* end position, exclusive */ ^ and I've also seen that locally depending on which gcc version and -O level I'm using. Could we silence that? bollworm | 2026-02-16 09:32:03 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] camel | 2026-02-16 09:32:30 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] chimaera | 2026-02-16 11:40:29 | /home/debian/20-chimaera/buildroot/= HEAD/pgsql.build/../pgsql/src/backend/utils/adt/varlena.c:739:5: warning: = 'E' may be used uninitialized in this function [-Wmaybe-uninitialized] comma | 2026-02-16 14:55:48 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] conchuela | 2026-02-16 15:20:01 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] flea | 2026-02-16 09:31:52 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] krait | 2026-02-16 09:50:17 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] pipit | 2026-02-15 02:36:02 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] urocryon | 2026-02-15 01:45:07 | varlena.c:739:5: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] wireworm | 2026-02-16 15:20:49 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] ziege | 2026-02-15 01:18:25 | varlena.c:590:9: warning: 'E' may b= e used uninitialized in this function [-Wmaybe-uninitialized] regards, tom lane