Conversion of NaN to integer relies on undefined behavior

Bug #1771298 reported by Ralph Lange on 2018-05-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Status tracked in 7.0
3.14
Medium
Ralph Lange
3.15
Medium
Ralph Lange
3.16
Medium
Unassigned
7.0
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 Edit Tag help
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  Edit
Everyone can see this information.

Other bug subscribers