Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwVwK-0005sy-RE for pgsql-committers@arkaria.postgresql.org; Sun, 12 Dec 2021 20:59:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mwVwH-0007mx-Rc for pgsql-committers@arkaria.postgresql.org; Sun, 12 Dec 2021 20:59:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwVwH-0007mG-Ki for pgsql-committers@lists.postgresql.org; Sun, 12 Dec 2021 20:59:21 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwVwA-0004Zd-Ky for pgsql-committers@lists.postgresql.org; Sun, 12 Dec 2021 20:59:20 +0000 Received: from gemulon.postgresql.org ([2001:4800:3e1:1::198]) by mahout.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwVw9-0007DX-UO for pgsql-committers@lists.postgresql.org; Sun, 12 Dec 2021 20:59:13 +0000 Received: from localhost ([127.0.0.1] helo=gemulon.postgresql.org) by gemulon.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mwVw9-000480-D1 for pgsql-committers@lists.postgresql.org; Sun, 12 Dec 2021 20:59:13 +0000 Content-Type: multipart/mixed; boundary="===============1546186967683086617==" MIME-Version: 1.0 From: Tom Lane To: pgsql-committers@lists.postgresql.org Subject: pgsql: Add checks for valid multibyte character length in UtfToLocal, L X-Auto-Response-Suppress: All Auto-Submitted: auto-generated Message-Id: Date: Sun, 12 Dec 2021 20:59:13 +0000 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --===============1546186967683086617== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 QWRkIGNoZWNrcyBmb3IgdmFsaWQgbXVsdGlieXRlIGNoYXJhY3RlciBsZW5ndGggaW4gVXRmVG9M b2NhbCwgTG9jYWxUb1V0Zi4KClRoaXMgYmFjay1wYXRjaGVzIGNvbW1pdCBkOWYzN2U2NjYgaW50 byBvdXQtb2Ytc3VwcG9ydCBicmFuY2hlcywKcHVyc3VhbnQgdG8gbmV3bHktZXN0YWJsaXNoZWQg cHJvamVjdCBwb2xpY3kuICBUaGUgcG9pbnQgaXMgdG8Kc3VwcHJlc3MgInVuaW5pdGlhbGl6ZWQg dmFyaWFibGUiIHdhcm5pbmdzIHNvIHRoYXQgcGVvcGxlIGJ1aWxkaW5nCnRoZXNlIGJyYW5jaGVz IG5lZWRuJ3QgZXhwZW5kIGJyYWluIGNlbGxzIHZlcmlmeWluZyB0aGF0IGl0J3Mgc2FmZQp0byBp Z25vcmUgdGhlIHdhcm5pbmdzLgoKRGlzY3Vzc2lvbjogaHR0cHM6Ly9wb3N0Z3IuZXMvbS9kMDMx NjAxMi1lY2U3LTdiN2UtMmQzNi05YzM4Y2I3N2NiM2JAZW50ZXJwcmlzZWRiLmNvbQoKQnJhbmNo Ci0tLS0tLQpSRUw5XzJfU1RBQkxFCgpEZXRhaWxzCi0tLS0tLS0KaHR0cHM6Ly9naXQucG9zdGdy ZXNxbC5vcmcvcGcvY29tbWl0ZGlmZi83MGM2NDEzNWQwYTE3MTUyOTFiNGE0ODhkZjczNzdiZjg3 MjA3ZjhjCgpNb2RpZmllZCBGaWxlcwotLS0tLS0tLS0tLS0tLQpzcmMvYmFja2VuZC91dGlscy9t Yi9jb252LmMgfCAxNSArKysrKysrKysrKysrKysKMSBmaWxlIGNoYW5nZWQsIDE1IGluc2VydGlv bnMoKykKCg== --===============1546186967683086617==--