DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 562LBcCc3976320
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 562LBcCc3976320
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=w6Lbjjtw
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F3523852FF8
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1751490696;
	bh=WGgMDz7jewzhAQ9kY1chkI7/ZoELiMTATU1G18dfaFw=;
	h=Date:Subject:To:References:Cc:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=w6LbjjtwLiRcTCNglCfReSqzF+KJiQVABH4uCSjGIOBrqjpPj0+EwW7BbdEOCcJ8N
	 icMRgbvWEjScSvIZ+kUOBCRLqAkkTNN+1jImDKqH3ZGllcyCyyu99HKCfd8EC/vDTs
	 aWuG2SEtzwBq0JqPAevyB9JgLPbB666DIS9SUm0Q=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6367E385782C
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 6367E385782C
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1751490670; cv=none;
 b=h2CY3zdbdSKapvib26FUHx5F7CdlD6YNIpUjEjvl/XjZLoHGinO8qAZt7LJsjZKVKvwY9b9idQ1Mqa6TYj0WOWNRiMoc1+GIl1BdP/6oq8D+xicR//NWakBmcKDBPjoJ+TlcVzIFXbSe0QmdLSYygMOKihoXxi9xVC/tVvINRq8=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1751490670; c=relaxed/simple;
 bh=Apm5it+R71aKzBw4VqlFZ9jywWmo2Db61TofhFC3sbk=;
 h=Message-ID:Date:MIME-Version:Subject:To:From;
 b=c1FtX0RSXjeezrg3dAiQ4mP9y0x6ODTpTAtuCVbxtzr3ylJ8WLb9O6UyfBW+K/tH0OG+d3iJm7nQCSol0J+BiRzNhH2f9PDIOfGXDpDhQpB1xGwoMyFzrs5I1WZ1RI9JYcXRsJrO0OZCT6q+WecBgXih2Skn45YYPa7qgknVOww=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6367E385782C
X-SNCR-Rigid: 686364F3002CE504
X-Originating-IP: [86.139.167.63]
X-OWM-Source-IP: 86.139.167.63
X-OWM-Env-Sender: jon.turney@dronecode.org.uk
X-VadeSecure-score: verdict=clean score=0/300, class=clean
X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddukeeggecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhvegjtgfgsehtjeertddtvdejnecuhfhrohhmpeflohhnucfvuhhrnhgvhicuoehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkqeenucggtffrrghtthgvrhhnpefggefhvddvieejtedtgfelteffteeftdeugfefveehtdehgfffleeftefhvdelffenucffohhmrghinheptgihghifihhnrdgtohhmnecukfhppeekiedrudefledrudeijedrieefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdelngdpihhnvghtpeekiedrudefledrudeijedrieefpdhmrghilhhfrhhomhepjhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukhdprhgvvhfkrfephhhoshhtkeeiqddufeelqdduieejqdeifedrrhgrnhhgvgekiedqudefledrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhepjhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhsthepsghtphhrughrghhotddthedpnhgspghrtghpthhtohepuddprhgtphhtthho
 pegthihgfihinhestgihghifihhnrdgtohhm
X-RazorGate-Vade-Verdict: clean 0
X-RazorGate-Vade-Classification: clean
Message-ID: <be9b6387-a928-4fcf-af68-dab10f3aaa9b@dronecode.org.uk>
Date: Wed, 2 Jul 2025 22:11:09 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: readdir() returns inaccessible name if file was created with
 invalid UTF-8
To: Christian Franke via Cygwin <cygwin@cygwin.com>
References: <96f2253b-791b-b8a0-97dd-8d257eefb9b1@t-online.de>
 <03c4fae7-7322-572c-ae72-52e300f0b438@t-online.de>
 <aFxRfI4NdZ8y5IlK@calimero.vinschen.de>
 <f78c615c-aefe-b3d0-aada-5f9d0cf73a0a@t-online.de>
Content-Language: en-US
Cc: cygwin@cygwin.com
In-Reply-To: <f78c615c-aefe-b3d0-aada-5f9d0cf73a0a@t-online.de>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Jon Turney via Cygwin <cygwin@cygwin.com>
Reply-To: Jon Turney <jon.turney@dronecode.org.uk>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On 26/06/2025 18:07, Christian Franke via Cygwin wrote:
> Corinna Vinschen via Cygwin wrote:
>> On Jun 25 16:59, Christian Franke via Cygwin wrote:
>>> On Sun, 15 Sep 2024 19:47:11 +0200, Christian Franke wrote:
>>>> If a file name contains an invalid (truncated) UTF-8 sequence, open()
>>>> does not refuse to create the file. Later readdir() returns a different
>>>> name which could not be used to access the file.
>>>>
[...]
> 
> Testcase: enable one of the "DON'T DO THIS" lines and make sure that a 
> suitable file removal tool is available :-)

Christian,

I think you should already have push access to the stc repository I 
setup [1], which is now run as part of the CI to check for regressions.

If you think it's useful, please consider adding this (or any of the 
other STCs you've very helpfully put together) to that.

[1] https://cygwin.com/cgit/cygwin-apps/stc/


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
