|
Message-ID: <20230320211937.GU4163@brightrain.aerifal.cx> Date: Mon, 20 Mar 2023 17:19:37 -0400 From: Rich Felker <dalias@...c.org> To: Bruno Haible <bruno@...sp.org> Cc: musl@...ts.openwall.com Subject: Re: swprintf: count returned by %n is wrong after conversion error On Mon, Mar 20, 2023 at 07:22:25PM +0100, Bruno Haible wrote: > Rich Felker wrote: > > There is probably also a similar issue in non-wide printf, but only > > for write errors, not for encoding errors, and only visibly wrong if > > the write error is transient (e.g. EAGAIN). > > Glad that you are seeing this by code inspection. Because in my test > suite, I only test the behaviour in case of encoding errors, not of > write errors. Thanks for reporting it. The underlying issue is somewhat larger than what you found, but your report gave the lead for discovering the rest. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.