Actions
Bug #718
closedOFStandard::atof() cannot handle NaN
Start date:
2017-02-06
Due date:
% Done:
0%
Estimated time:
Module:
ofstd
Operating System:
Compiler:
Description
Alexander Karaivanov writes: I'd like to report bug in OFStandard::atof(), the version when DISABLE_OFSTD_ATOF is not defined (the version that does not use sscanf()). The problem is that this version cannot handle conversion of the string NaN to a NaN floating point value. As result, DcmFloatingPointSingle::putString("NaN") and DcmFloatingPointDouble::putString("NaN") would not work and return EC_CorruptedData instead.
Comment: Before fixing this it should be clarified whether NaN values are actually permitted in DICOM FL/FD elements.
Actions