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 1x7O17-00000000MKE-15pm for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Sep 2026 02:07:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x7O16-00000007H6j-1jFd for pgsql-bugs@arkaria.postgresql.org; Fri, 18 Sep 2026 02:07:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x7O16-00000007H6a-0ggk for pgsql-bugs@lists.postgresql.org; Fri, 18 Sep 2026 02:07:56 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x7O0y-000000017zS-3z0B for pgsql-bugs@lists.postgresql.org; Fri, 18 Sep 2026 02:07:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.18.1/8.18.1) with ESMTP id 68I27QuC954961; Thu, 17 Sep 2026 22:07:26 -0400 From: Tom Lane To: Peter Eisentraut cc: Ewan Young , Heikki Linnakangas , 1217816127@qq.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #19545: Integer truncation of `GinTuple.keylen` causes out-of-bounds read in parallel GIN index build In-reply-to: References: <19545-0f25b7e47351e8fc@postgresql.org> <479d6c7e-362c-41d8-a263-8d126ecdfd77@eisentraut.org> Comments: In-reply-to Peter Eisentraut message dated "Mon, 14 Sep 2026 18:03:15 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <954959.1789697246.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 17 Sep 2026 22:07:26 -0400 Message-ID: <954960.1789697246@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > I have committed these, thanks. The ABI-compliance-checking buildfarm animals have all been unhappy since this went in: 'struct GinTuple' changed: type size changed from 16 to 24 (in bytes) 1 data member deletion: 'uint16 keylen', at offset 6 (in bytes) 1 data member insertion: 'union {Size keylen; double force_align_d; int64 force_align_i64;} u',= at offset 8 (in bytes) there are data member changes: 'int16 typlen' offset changed from 8 to 16 (in bytes) (by +8 bytes) 'bool typbyval' offset changed from 10 to 18 (in bytes) (by +8 bytes) 'signed char category' offset changed from 11 to 19 (in bytes) (by +8 = bytes) 'int nitems' offset changed from 12 to 20 (in bytes) (by +8 bytes) 'char data[]' offset changed from 16 to 24 (in bytes) (by +8 bytes) Is it really okay to change this struct in v18? If so, the .abi-compliance-history files need to be updated. regards, tom lane