Conversion of NaN to integer relies on undefined behavior

Bug #1771298 reported by Ralph Lange
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Status tracked in 7.0
3.14
Fix Released
Medium
Ralph Lange
3.15
Fix Released
Medium
Ralph Lange
3.16
Fix Released
Medium
Unassigned
7.0
Fix Released
Medium
Unassigned

Bug Description

See the discussion in https://code.launchpad.net/~epics-core/epics-base/+git/ralph/+merge/345368

The conversion of NaN values to integer type data (when converting from records to DBR_GR_<> types) has to explicitly cover non-finite values, as such conversions are undefined as per Annex F.4 of the C99 standard.

Tags: db
Revision history for this message
Ralph Lange (ralph-lange) wrote :
Changed in epics-base:
milestone: 3.14.branch → 3.14.12.8
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.