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 1wBuR4-001ULP-1Y for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Apr 2026 13:01:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wBuQ3-002FDL-2G for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Apr 2026 13:00:08 +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 1wBuQ3-002FD4-1L for pgsql-hackers@lists.postgresql.org; Sun, 12 Apr 2026 13:00:08 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wBuQ2-00000000ddx-13e0 for pgsql-hackers@lists.postgresql.org; Sun, 12 Apr 2026 13:00:07 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-488a041eae5so24846525e9.1 for ; Sun, 12 Apr 2026 06:00:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775998804; x=1776603604; darn=lists.postgresql.org; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=z3ejDsysPU1cq/5RoOsAH1AjtKHf2LOjuO4Xw+zgiQg=; b=S/Hy0yNWO2gvlA5JXlgmmvd/wj5aK0mevrCymC7uPYF1n3uyAHAdUol3rDuGedFPLH 1wSzBrcnpIuqO4xPpA0fS2rF90HdCqYdfHrNtGN/xgY3CeSnAVEtT4BmvVpCqFVRsguk hXopn11NoVxQLdMgvKAg5PFs38IWijf/217yq0SQ4rqcApizLPOwhqrta+iQ48+I03El S16oBnih1dTeQleE38tQYmP6yDMJo80UPo+JWV4R67jcuog2aGjIhGPeB51f6b57SxYQ 8at/eW1UgrHWSvZaiSLRI+8Gw0ReYX3jPcZ2Pp7IDdN/AtnN3i4psZAi/l9ISYmHvQdn 1i2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775998804; x=1776603604; h=in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=z3ejDsysPU1cq/5RoOsAH1AjtKHf2LOjuO4Xw+zgiQg=; b=RIOuTUfypkA3os57U6/RtZfBStfmyIW+ZOKvVfGv/3PfRSo0mloxvCg+RtazhCj6jk d/vzQOj6YAsHQQW+RJoeTURKenK2Fa5ghof9SewCWl/VFb81zfQCgoyJAVE9P5AiP8Pi qr6Jr1urJXrpAfBRfH0qHSB6uBXUOWIZnqlJ0aTKuUZ8E1KBvphycpfgwbNSdySBmVb8 gQopgjHVLw1MHq+zCDVyTJE556dfECAJG3PqHJwx3Eio8zKrsanONMsh9asRW98uabIR i9LI4yy3bYRk5gAE6s0NbQNKeUe1neYKBd0M2nIr3MQ/g+q1uIa1akhQMvuGxRc/BCn9 fNLw== X-Forwarded-Encrypted: i=1; AJvYcCVE+prWR8yTDsP61piVK9isq2qiD85YvpQdt/bML6ypDHt2UUsl7UJJ1sFha/tAIxIV2sfVJOGn3+tk5MnE@lists.postgresql.org X-Gm-Message-State: AOJu0YycbWrlaBcPYnSU8Gu8pqJ2KunzVLUNdJ8BEVbbkNxMJQhphHbK +ga+eU748joYEUWyHwQfGYl2aQ145WLWjTiHosniLkZWEYP+D3NkwDAq X-Gm-Gg: AeBDiestiOnsP7iJvKnSPTwzbal3jka6+LFdBbB31bbB2j2zKzV8VUeMx6cccDrWlei oTkefkJXO0D5e8KPmhIm6Sekn5PVCiFgV/i7MWCqahlqnUjuMWHZ7g1qAqd0aUVznayOjXdKLgr dtlvnXMve4AZF1FzQWJ6pEAm6m71mgopksVqpY+FbEFYIkQ0tofpVQ8XIk5eOw73r+1WblXT796 SdNuVRDPUsobsAx/fub9z0U3mSWRiTJmwyCDWyoqC0Z6x3XmWkn8SxUGmhf51gYPCzPflWoQpBi 6PmszVQg+jsKNipTnKnU2IF7e8FoPnZLoRhiPvyuhjxQCCeEyCYh7lLKPhVcROhWCf+qJyMPbzP 46W98pUxt55Zr1grgPLK3Qb1LzF1ph6oPb9SMS0fjh/6HGCjTfCG5rAvMcqiGIxDOF7HPKCZbMn /5dHk21JodUAyEFQXri3HHn2GEUzPhKXXIH74= X-Received: by 2002:a05:600c:3149:b0:488:ae4e:519c with SMTP id 5b1f17b1804b1-488d683d505mr129224285e9.18.1775998803574; Sun, 12 Apr 2026 06:00:03 -0700 (PDT) Received: from [192.168.0.50] ([89.149.68.143]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488d5d703c1sm70475365e9.3.2026.04.12.06.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Apr 2026 06:00:02 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------2EcvMgOL25YbXklHy3SwIU1H" Message-ID: <7fb11a74-69c6-4f73-b505-0fac9783cc4c@gmail.com> Date: Sun, 12 Apr 2026 16:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Non-compliant SASLprep implementation for ASCII characters To: Michael Paquier Cc: John Naylor , Postgres hackers References: <09df9d75-13e7-45fe-89af-33fe118e797b@gmail.com> Content-Language: en-US From: Alexander Lakhin In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------2EcvMgOL25YbXklHy3SwIU1H Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 12.04.2026 14:47, Michael Paquier wrote: > On Sun, Apr 12, 2026 at 09:00:00AM +0300, Alexander Lakhin wrote: >> That is, strlcpy() tries to evaluate strlen() for src, which contains only >> one byte without null terminator. > Thanks for the report. I don't know why skink is not complaining, but > I do see the failure, and I am able to fix it with the attached. Does > it work on your side? Yes, it works. Thank you for paying attention to the issue! Maybe it would make sense to find out why skink doesn't detect this (just in case there are or will be similar defects hiding) before pushing the fix... Best regards, Alexander --------------2EcvMgOL25YbXklHy3SwIU1H Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
12.04.2026 14:47, Michael Paquier wrote:
On Sun, Apr 12, 2026 at 09:00:00AM +0300, Alexander Lakhin wrote:
That is, strlcpy() tries to evaluate strlen() for src, which contains only
one byte without null terminator.
Thanks for the report.  I don't know why skink is not complaining, but
I do see the failure, and I am able to fix it with the attached.  Does
it work on your side?

Yes, it works. Thank you for paying attention to the issue!

Maybe it would make sense to find out why skink doesn't detect this (just
in case there are or will be similar defects hiding) before pushing the
fix...

Best regards,
Alexander
--------------2EcvMgOL25YbXklHy3SwIU1H--