[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9612: sort: avoid a NaN-induced infloop
From: |
Jim Meyering |
Subject: |
bug#9612: sort: avoid a NaN-induced infloop |
Date: |
Tue, 27 Sep 2011 19:24:25 +0200 |
Andreas Schwab wrote:
> Jim Meyering <address@hidden> writes:
>
>> The statement "long double x = NAN;" (inside glibc's strtold) leaves many
>> bits of "x" uninitialized.
>
> You are looking at padding bits, which have unspecified contents.
I realize that they are unspecified.
That is why I did not claim that this is a POSIX violation.
POSIX says little about what strtold must do for a "NaN" string.
However, I am dismayed that with glibc's strtold the values of those bits
is not deterministic. That makes sorting NaN values obtained from strtold
unnecessarily hard.
- bug#9612: sort: avoid a NaN-induced infloop, Jim Meyering, 2011/09/27
- bug#9612: sort: avoid a NaN-induced infloop, Andreas Schwab, 2011/09/27
- bug#9612: sort: avoid a NaN-induced infloop,
Jim Meyering <=
- bug#9612: sort: avoid a NaN-induced infloop, Andreas Schwab, 2011/09/27
- bug#9612: sort: avoid a NaN-induced infloop, Paul Eggert, 2011/09/27
- bug#9612: sort: avoid a NaN-induced infloop, Jim Meyering, 2011/09/27
- bug#9612: sort: avoid a NaN-induced infloop, John Reiser, 2011/09/27
- bug#9612: sort: avoid a NaN-induced infloop, Andreas Schwab, 2011/09/27