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 1wNvt3-001BUG-2m for pgsql-bugs@arkaria.postgresql.org; Fri, 15 May 2026 16:59:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wNvt2-00170y-1q for pgsql-bugs@arkaria.postgresql.org; Fri, 15 May 2026 16:59:44 +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 1wNvt2-00170p-0i for pgsql-bugs@lists.postgresql.org; Fri, 15 May 2026 16:59:44 +0000 Received: from mail-dy1-x1332.google.com ([2607:f8b0:4864:20::1332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wNvt0-00000000j5r-1Db5 for pgsql-bugs@lists.postgresql.org; Fri, 15 May 2026 16:59:43 +0000 Received: by mail-dy1-x1332.google.com with SMTP id 5a478bee46e88-30246cfd41aso117249eec.1 for ; Fri, 15 May 2026 09:59:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20251104.gappssmtp.com; s=20251104; t=1778864381; x=1779469181; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=999LYABNpN5zd+ggFyip8r169dQV2s0eppCSVQTr9wM=; b=c6xMC9EdbjJzd2XJ/nZnUeAbskToc5v/cUktE05dHCRkjPw+USXMOw52tCQBNBbQf6 zohkuQSTPDbQBbCD5TdRGSU4I50nwv22j5TeoT4wOgXmbOAFGwMXa4wMmJtDC8GrT0Ni lc8QOrono0z9PwkZVPMZIfs+xerZopvo5yBzOP2/mRdU+lv+8Gx0CBC4ktEKwVg3GYHq ufm9z5nogECLi66HOq2iUMAsE6mtXrskUlMD0xTWq7Zmt2IrvA7MQ0NmjpES+y//W0W0 K4KK8JmKl1XjknKl2ukTtUaPQaoA6gVta5lFonovxtV5CQqvVks0CtcAbVoMaltIfX6z 0WnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778864381; x=1779469181; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=999LYABNpN5zd+ggFyip8r169dQV2s0eppCSVQTr9wM=; b=svpcCBpWSoTvMCPhULD3hXIs8owOZX96drPOT+fjynPtioEysgOHYlvp8VPMzkdML8 86682NWQFWvyWm+HOhXJiegstsr8LyLPhGaImXLwcbD+deMz0f2EO+f2XwgR7eQQBgQd pJBSqFOea+OGYRUSa+EXEKQ/Ps1Vtak/HnvbwLcZ7u4SEErQiGChScoIy1iki+wxkbmr GyFdpalK8k/uLiGNj8EJxgKndwo1TJ4f/V5FhrTgGRfRL4rFCrBiTQTAIn2t0yD+TcOc +72tf5KJ73y+5Az+GIxCAmCdjRtgMKpzM5V6W/Ua1utCAPVQlE9F/I9DFI4QPDmqM5x3 tQoQ== X-Forwarded-Encrypted: i=1; AFNElJ+l96188qwil5Vt9iQHbD3hsmsL7wQECObn27h518hFUkkWE8+SsycFS6YXIbkYNQEIDx+n8rRcJkix@lists.postgresql.org X-Gm-Message-State: AOJu0Yz2Qw9JNlCVyQoO65VfG5QGrz+tKNPWXeCgrQmcJfW4/Od6tVRc 6B9bTLQIFCPS4L+YMEXVM2zIQBGp8d/c9L02C/kKrCcOPqx6e2fUD9DcTrL63D0/Hf341BiY2Uy IdTc= X-Gm-Gg: Acq92OHcZ8hO5/8yAW5JAvfAhRV15g+x0rApbuFi1D+mGzWeAyicBZ6c32ojmmh8qWV PmflwT30vHYojYxdKTsjxMuVJJUx0qQTWZsUu1DbuwzIaC1hU/Y/WKbn9woCaEBDbDi8i8OB0VM LneO866SddaTJfiywhAy1VryCpExIGIV9X9Bxsp7qWphX8/iw/B4izwqBHBlHnnVFCVVWIpV3rz n7elpADq2DGIxlYr/qv8lCmzlE3CWnNWDgNMLioAON3DggFgCaUli8DBXVqv4WgzWVm49uulzLR QkZOIZpgG3eJod6Af58fm1lcdztWziSvZIYVYjPOfUV9pvg481Lt+yv0fTBWs/vfFixBz8OhbLt wT5cD4/PEV11W8dCHxLXdj/8ZLVLLLlwB7DzfDnCUYumXqxkjpTNp2saSejYrdoUvcCM2zbHlhI eHeLkZI41ajMMJZzvEsV2/2DBqVL28r4fmINFd0yPd+/6YriD2c/M= X-Received: by 2002:a05:7300:2211:b0:2f2:2e0b:24cc with SMTP id 5a478bee46e88-3039869953fmr2519792eec.24.1778864381053; Fri, 15 May 2026 09:59:41 -0700 (PDT) Received: from jeff-laptop.lan (c-24-7-19-3.hsd1.ca.comcast.net. [24.7.19.3]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-30294adddaasm7611309eec.13.2026.05.15.09.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 May 2026 09:59:40 -0700 (PDT) Message-ID: Subject: Re: BUG #19413: ASAN: stack-buffer-overflow in foldcase_options() with invalid ICU language tag From: Jeff Davis To: n.kalinin@postgrespro.ru, pgsql-bugs@lists.postgresql.org Date: Fri, 15 May 2026 09:59:39 -0700 In-Reply-To: <19413-cf98b0a31559b77b@postgresql.org> References: <19413-cf98b0a31559b77b@postgresql.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1.1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2026-02-19 at 05:26 +0000, PG Bug reporting form wrote: > The following bug has been logged on the website: >=20 > Bug reference:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 19413 > Logged by:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Nikita K= alinin > Email address:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 n.kalinin@postgrespro.ru > PostgreSQL version: 18.2 > Operating system:=C2=A0=C2=A0 ubuntu 22.04 > Description:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=20 >=20 > When building with ASAN: > CPPFLAGS=3D"-O0 -ggdb3 -fno-omit-frame-pointer -fsanitize=3Daddress > -fsanitize=3Dundefined -fno-sanitize-recover=3Dall > -fno-sanitize=3Dnonnull-attribute -fstack-protector" > LDFLAGS=3D"-fsanitize=3Daddress -fsanitize=3Dundefined" >=20 > Runtime ASAN options: > ASAN_OPTIONS=3Ddetect_leaks=3D0:abort_on_error=3D1:disable_coredump=3D0:s= tric > t_string_checks=3D1:check_initialization_order=3D1:strict_init_order=3D1:= de > tct_odr_violation=3D0:detect_stack_use_after_return=3D0 >=20 > The following queries: > CREATE COLLATION lt_insensitive (provider =3D icu, locale =3D 'enu-ks- > level1', > deterministic =3D false); > CREATE COLLATION lt_insensitive (provider =3D icu, locale =3D 'en-u-ks- > level1', > deterministic =3D false); > CREATE COLLATION x (provider =3D icu, locale =3D 'en-u-ks-level1', > deterministic > =3D false); > CREATE COLLATION lt_insensitive (provider =3D icu, locale =3D 'en-u-ks- > level1', > deterministic =3D false); Thank you for the report. This appears to be fixed as of: https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommit;h=3D06ce97= b9994eca91250d7c28f0df9b1ae7829f36 due to another report that came later. This bug should have been referenced in the commit -- sorry. Let me know if this resolves the issue. Regards, Jeff Davis