NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/56148: lib/libc/stdio/t_printf:snprintf_float test randomly fails



The following reply was made to PR lib/56148; it has been noted by GNATS.

From: Christos Zoulas <christos%zoulas.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: lib-bug-people%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost,
 Andreas Gustafsson <gson%gson.org@localhost>
Subject: Re: lib/56148: lib/libc/stdio/t_printf:snprintf_float test randomly
 fails
Date: Sun, 9 May 2021 13:27:39 -0400

 --Apple-Mail=_30B3B6D3-E769-42D4-8EA5-321EB2297DA6
 Content-Transfer-Encoding: quoted-printable
 Content-Type: text/plain;
 	charset=us-ascii
 
 I am not aware of any libc implementations that don't allocate memory to =
 do double-to-ascii conversions.
 =46rom what I've seen Solaris does the best here calling malloc only in =
 __big_float_times_power().
 I don't see us replacing gdtoa anytime soon, so we should probably =
 document this in the snprintf() man pages.
 We could also file a bug report with opengroup/posix to make ENOMEM =
 legal for floating point conversions.
 
 christos
 
 --Apple-Mail=_30B3B6D3-E769-42D4-8EA5-321EB2297DA6
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP
 
 -----BEGIN PGP SIGNATURE-----
 Comment: GPGTools - http://gpgtools.org
 
 iF0EARECAB0WIQS+BJlbqPkO0MDBdsRxESqxbLM7OgUCYJgbiwAKCRBxESqxbLM7
 OsrqAJ97jb/6MFXT236OKrnMd8Y7BPtBGgCgoNSFIY3i0WfnRVTmW94BJjkvDLA=
 =KYpm
 -----END PGP SIGNATURE-----
 
 --Apple-Mail=_30B3B6D3-E769-42D4-8EA5-321EB2297DA6--
 


Home | Main Index | Thread Index | Old Index