From: Joseph Myers Date: Thu, 17 Oct 2013 12:36:02 +0000 (+0000) Subject: soft-fp: make extensions quiet signaling NaNs (bug 16041). X-Git-Tag: glibc-2.19~596 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5c2c2d0c0315ca24cc9cd638cdb1a2d8dcc4b0d;p=thirdparty%2Fglibc.git soft-fp: make extensions quiet signaling NaNs (bug 16041). --- diff --git a/ChangeLog b/ChangeLog index f0e44d24652..d2a3e349bdb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-10-17 Joseph Myers + + [BZ #16041] + * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN, + make result into a quiet NaN. + 2013-10-16 Joseph Myers * soft-fp/adddf3.c: Fix horizontal whitespace. diff --git a/NEWS b/NEWS index ac375f8045e..1501f94ea38 100644 --- a/NEWS +++ b/NEWS @@ -16,7 +16,7 @@ Version 2.19 15857, 15859, 15867, 15886, 15887, 15890, 15892, 15893, 15895, 15897, 15905, 15909, 15919, 15921, 15923, 15939, 15963, 15966, 15988, 16032, 15905, 15909, 15919, 15921, 15923, 15939, 15963, 15966, 15988, 16032, - 16034, 16036. + 16034, 16036, 16041. * CVE-2012-4412 The strcoll implementation caches indices and rules for large collation sequences to optimize multiple passes. This cache diff --git a/soft-fp/op-common.h b/soft-fp/op-common.h index 9a9a8f52568..67cdc33b4cf 100644 --- a/soft-fp/op-common.h +++ b/soft-fp/op-common.h @@ -1505,6 +1505,7 @@ FP_SET_EXCEPTION (FP_EX_INVALID); \ _FP_FRAC_SLL_##dwc (D, (_FP_FRACBITS_##dfs \ - _FP_FRACBITS_##sfs)); \ + _FP_SETQNAN (dfs, dwc, D); \ } \ } \ } \