aboutsummaryrefslogtreecommitdiff
path: root/contrib/bc
diff options
context:
space:
mode:
authorBrandon Bergren <bdragon@FreeBSD.org>2021-03-01 02:35:53 +0000
committerBrandon Bergren <bdragon@FreeBSD.org>2021-03-08 18:40:11 +0000
commita79735386c46298274d71577ab6b4dd00be261cc (patch)
treea5e28508e991671308a435b482a34325d3516479 /contrib/bc
parent8b96d6ac04e7e761ec6b9eff47c801a2b89fbd6d (diff)
downloadsrc-a79735386c46298274d71577ab6b4dd00be261cc.tar.gz
src-a79735386c46298274d71577ab6b4dd00be261cc.zip
[PowerPC64] Fix multiple issues in fpsetmask().
Building R exposed a problem in fpsetmask() whereby we were not properly clamping the provided mask to the valid range. R initilizes the mask by calling fpsetmask(~0) on FreeBSD. Since we recently enabled precise exceptions, this was causing an immediate SIGFPE because we were attempting to set invalid bits in the fpscr. Properly limit the range of bits that can be set via fpsetmask(). While here, use the correct fp_except_t type instead of fp_rnd_t. Reported by: pkubaj (in IRC) Sponsored by: Tag1 Consulting, Inc. (cherry picked from commit dd95b39235dd81c890aa3cce02a5bb7f91f23803)
Diffstat (limited to 'contrib/bc')
0 files changed, 0 insertions, 0 deletions