Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
Though floating point exception conditions and handling are standardized by IEEE \[[1]\], operating systems implement support for handling floating point errors and other conditions in different ways.

Operating System

Handling FP errors

Linux
Solaris 10
Mac OS X 10.5
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c9bf0f939ca11d72-5c477469-4ba64ca8-b1679adb-ada5470cb0f06eb8ee581844"><ac:plain-text-body><![CDATA[Fedora Core 5

C99 FP functions - These functions are declared in fenv.h [Open Group 04]
]]></ac:plain-text-body></ac:structured-macro>
Before fenv.h based functions were standardized; an alternative to using these C99/fenv() functions is using ieee_flags and ieee_handler

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="39a5c66b580fd569-b57ac754-4274425f-a659a204-349d1c4595d7b081231ff15d"><ac:plain-text-body><![CDATA[

Windows

Structured Exception Handling - user defined handler _fpieee_flt [MSDN]
]]></ac:plain-text-body></ac:structured-macro>
 

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

FLP03-A

1 (low)

2 (probable)

2 (medium)

P4

L3


References

Wiki Markup
\[[1]\] IEEE standard for binary floating-point arithmetic
[http://ieeexplore.ieee.org/xpl/standardstoc.jsp?isnumber=1316]
\[[Intel 01|AA. C References#Intel 01]\]
\[[Keil 08|AA. C References#Keil 08]\]
\[[MSDN|AA. C References#MSDN]\] "[fpieee_flt (CRT)|http://msdn.microsoft.com/en-us/library/te2k2f2t(VS.80).aspx]"
\[[Open Group 04|AA. C References#Open Group 04]\] "[fenv.h - Floating point environment|http://www.opengroup.org/onlinepubs/009695399/basedefs/fenv.h.html]"
\[[SecurityFocus 07|AA. C References#SecurityFocus 07]\] 

...