Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6c1dfc63-b3e8-46a3-1db1-4d5bdf031086@gmail.com>
Date: Tue, 6 Sep 2022 12:12:48 +0200
From: Gabriel Ravier <gabravier@...il.com>
To: musl@...ts.openwall.com
Subject: ecvt(0, 0, ...) is broken

Executing ecvt(0, 0, &decpt, &sign) results in musl returning 
"000000000000000".

This seems highly likely to be a bug considering that glibc returns "" 
and I see no plausible reasoning for musl's behavior that could be 
justified by the standard.

This seems to be caused by musl's ecvt containing this line of code:

if (n-1U > 15) n = 15;

which I would assume was not intended to match n == 0.

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.