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 1xRfXu-00000001BeR-3QQt for pgsql-committers@arkaria.postgresql.org; Fri, 13 Nov 2026 00:53:38 +0000 Received: from localhost ([127.0.0.1]:60342 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xRW5z-00000000s52-3tRL for pgsql-committers@arkaria.postgresql.org; Thu, 12 Nov 2026 14:48:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:55118) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQQGW-00000001RGn-3ifo for pgsql-committers@lists.postgresql.org; Mon, 09 Nov 2026 14:22:33 +0000 Received: from mahout.postgresql.org ([72.32.157.227]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQQGA-000000002xw-1XyM for pgsql-committers@lists.postgresql.org; Mon, 09 Nov 2026 14:22:32 +0000 Received: from gemulon.postgresql.org ([2001:4800:3e1:1::198]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xQQG1-000000006Lf-3RN1 for pgsql-committers@lists.postgresql.org; Mon, 09 Nov 2026 14:22:02 +0000 Received: from localhost ([127.0.0.1] helo=gemulon.postgresql.org) by gemulon.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xQQG0-000000003hk-48Pz for pgsql-committers@lists.postgresql.org; Mon, 09 Nov 2026 14:22:00 +0000 Content-Type: multipart/mixed; boundary="===============1660671638160826989==" MIME-Version: 1.0 From: Noah Misch To: pgsql-committers@lists.postgresql.org Subject: pgsql: Harden some allocations against integer wraparound X-Auto-Response-Suppress: All Auto-Submitted: auto-generated Message-Id: Date: Mon, 09 Nov 2026 14:22:00 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --===============1660671638160826989== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 SGFyZGVuIHNvbWUgYWxsb2NhdGlvbnMgYWdhaW5zdCBpbnRlZ2VyIHdyYXBhcm91bmQKClRoaXMg aXNuJ3QgY2xvc2luZyBhbnkgc3BlY2lmaWMgc2VjdXJpdHkgYnVnLCBidXQgYXR0YWNrcyBhcmUg cGVyaGFwcwpjb25jZWl2YWJsZSBkdWUgdG8gdmFyaW91cyBmb3JtcyBvZiB0eXBlIGNvbmZ1c2lv biBvciBkYXRhIGNvcnJ1cHRpb24uClRpZ2h0ZW4gdGhhdCB1cCBhIGJpdC4gIE1vcmUgaXMgdW5k b3VidGVseSBwb3NzaWJsZS4KCkF1dGhvcjogw4FsdmFybyBIZXJyZXJhIDxhbHZoZXJyZUBrdXJp bGVtdS5kZT4KU2VjdXJpdHk6IENWRS0yMDI2LTEyMDEzOQpCYWNrcGF0Y2gtdGhyb3VnaDogMTQK CkJyYW5jaAotLS0tLS0KUkVMXzE4X1NUQUJMRQoKRGV0YWlscwotLS0tLS0tCmh0dHBzOi8vZ2l0 LnBvc3RncmVzcWwub3JnL3BnL2NvbW1pdGRpZmYvZjFiMjI2ZGVlMWNiYmM3NGI1ZGY0NTE4NWE1 ZTk0YTU0N2EzOGU0YQpBdXRob3I6IMOBbHZhcm8gSGVycmVyYSA8YWx2aGVycmVAa3VyaWxlbXUu ZGU+CgpNb2RpZmllZCBGaWxlcwotLS0tLS0tLS0tLS0tLQpzcmMvYmFja2VuZC9hY2Nlc3MvY29t bW9uL2RldG9hc3QuYyAgICAgICAgICAgfCAgOSArKysrKysrCnNyYy9iYWNrZW5kL2FjY2Vzcy9j b21tb24vdG9hc3RfY29tcHJlc3Npb24uYyB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