]> git.ipfire.org Git - thirdparty/coreutils.git/commit
sort: fix sort -g infloop again
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2022 05:46:21 +0000 (22:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 May 2022 05:53:29 +0000 (22:53 -0700)
commit2f56f5a42033dc6db15d8963e54566f01fa0d61d
treed3b8e206eddb9c14575783ea88c26f9202d4be16
parente087525091b8f0a15eb2354f71032597d5271599
sort: fix sort -g infloop again

Problem reported by Giulio Genovese (Bug#55212).
* src/sort.c (nan_compare): To compare NaNs, simply printf+strcmp.
This avoids the problem of padding bits and unspecified behavior.
Args are now long double instead of char *; caller changed.
NEWS
src/sort.c