From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4A11360ED8 for ; Mon, 1 Jun 2026 22:10:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780351852; cv=none; b=oHbxyhNDzHFj0CXRSpyZWbLyWQkQME9YMnW9W74G09ccUxewxErRSJEWl1ICzgVgMB7HHfFp7Q3rDTlkdXCk6IEGi1CgAEsskeVElJaqSifea9Z+7RkZI/H80Lrrnd5eq7HdN9/fjBeJO4GCKQSj0rWtdALHgbzPf1hYkoFlpek= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780351852; c=relaxed/simple; bh=FByvamyeMORpluci6A+a3Q3D9yR2pBQDIuG+8KlAUt8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dSVwPACwQhANfKpE/hmPRRF17T6e3vUZ3WRpnx/hkFUOrbsyJuxk6tmXdZNeiCe73IwIjnS1ODXJ1/imyy1lQ+jQswGEf0wx+Oc/IE1J+KpppQa+D8CS6Z8MD7l9HFRp7/TeywRgNPtStdmu4A9OpAHIWVJgZw90IIoFqY8LL/A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Qo+A90yF; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Qo+A90yF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 708061F00898; Mon, 1 Jun 2026 22:10:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780351851; bh=aNuXJ6U6SVgYH94YFdsBrWGK9bD/zvYSd4B884fXcHs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Qo+A90yFEmihr4WHDBCQnO4N5IKVQKrz3694eTEc6O/hKqCIMsASvRcUgqarmVfBo GJBdZMZwbUDY5fZ6v7p09dChKBskzbWA1KHVtpTIE1O6WB3UKYz9rVTWpVNCiUc46n KHFhaT1fmN3VNVwxyEqSMCbgSRE1zggGydFbHXnMX0QM+U6XC+I6MxGRTyUYxQ9N94 2BA+18ng00xBaFwcBoqmGVCoZ0LAL15y9PSveiT2+ZqCXQxpLw1BUxDL5NHLIIE6qy ZHdGkDA0XYYuKYjyvlOzISpCR4Pm8pmdWpFS48scYjWEfVB7v3qsa+PLn7VbuJrePv ecJTtwp8m8m+Q== Date: Tue, 2 Jun 2026 00:10:48 +0200 From: Alejandro Colomar To: Florian Weimer Cc: Adhemerval Zanella Netto , libc-alpha@sourceware.org, linux-man@vger.kernel.org Subject: Re: non-standard const-preserving string APIs Message-ID: References: <0c1e8b52-68d3-4be4-84aa-8ab5bdfee29a@linaro.org> <87h5nmo5cz.fsf@oldenburg.str.redhat.com> Precedence: bulk X-Mailing-List: linux-man@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="uqvmpb4taf4tbxc4" Content-Disposition: inline In-Reply-To: <87h5nmo5cz.fsf@oldenburg.str.redhat.com> --uqvmpb4taf4tbxc4 Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable From: Alejandro Colomar To: Florian Weimer Cc: Adhemerval Zanella Netto , libc-alpha@sourceware.org, linux-man@vger.kernel.org Subject: Re: non-standard const-preserving string APIs Message-ID: References: <0c1e8b52-68d3-4be4-84aa-8ab5bdfee29a@linaro.org> <87h5nmo5cz.fsf@oldenburg.str.redhat.com> MIME-Version: 1.0 In-Reply-To: <87h5nmo5cz.fsf@oldenburg.str.redhat.com> Hi Florian, On 2026-06-01T13:41:16+0200, Florian Weimer wrote: > > I will try to take a look, but I recall from previous weekly calls > > that Florian has raised objection that this does not solve the > > overflow issue (not without further extra changes). >=20 > >=20 > > I am not sure if he still keep his objection, nor if it is would a > > blocker for this new api. >=20 > I still think we should fix it. Maybe rename the =E2=80=9Cdone=E2=80=9D = variable in the > vfprintf internals to =E2=80=9Cssize_t=E2=80=9D, and then gradually fix t= he compilation > failures, investigating whether the change is correct in context. We > need to add some early bailout in case INT_MAX is crossed for the > non-aprintf case. Would you mind at least confirming whether the current patches are OK modulo the EOVERFLOW issue? It's the first time I touch many of these files (e.g., abilist files), and I'd appreciate if you reviewed it so that I can forget about that part. Have a lovely night! Alex >=20 > Thanks, > Florian >=20 --=20 --uqvmpb4taf4tbxc4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmoeA2cACgkQ64mZXMKQ wqmV1A/9HPXHAj7mvCCvPIHUs0asnqLzQri3Deo7YpEHBQR+Sut2wF1mhYndscfc n+InDmrJdXHzSVmKZV9yRrWOUAuEAeDPkULINhAqKQ+0wv1nsgq++ddkxA9ZWy6w gUQMlMp5K6Za5TimGzqJm+0WbHiZmdhsDmarSrCRG9HsZJFxJPxAnvg9OyRhjKF6 zp5wH8XnHHmGbpydm+DFpdbFh823A+uiAmyciDDaUHyuYnSQhedyrRRP6A696ZN/ Q7f1rl+WdDXor3iPHJ725BywFvH37qFo4QfL/MLn0xpqnfPxaMsmT8CiEkzr/05+ rT9ZmnrY03uokYssayV3jcnydBmlkpnD5HbPM3ULPqPlM00U2g6yKCTmKVKs3NAt NUFrZIo3L0nLoGyBjpRMyQdVku792ZFHk+wczVPDSJ3YP8OM9BcJQX8y/sZ4Q3Y8 b+FnX+1k0KUCAR4aVlMtSbHwysFDbpG64RHYJVwVI0NwSp6H4Kfp4BhXbochs2q7 rM5dhGxT29IpVYkiJ5l65yOOb73NJUMAQpx9MaenJLljf5SSUE3ErpdnxJYLH6M6 yLtFGnfX8jUJPebMlNM3lWyXnbn6UzpJAHKeki4yDu/6xq1Ppg3R7c0U1f8VcK0N PQ3MnJcNqQYXZcVRac4NeGKwrm1ISAqiAPCBll3wCKt/sx5zvBE= =1GB5 -----END PGP SIGNATURE----- --uqvmpb4taf4tbxc4--