Conversion of NaN to integer relies on undefined behavior
Bug #1771298 reported by
Ralph Lange
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:/
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.
Changed in epics-base: | |
milestone: | 3.14.branch → 3.14.12.8 |
status: | New → Fix Committed |
To post a comment you must log in.
Related merge proposal: /code.launchpad .net/~epics- core/epics- base/+git/ ralph/+ merge/345368
https:/