Project

General

Profile

Actions

Bug #718

closed

OFStandard::atof() cannot handle NaN

Added by Marco Eichelberg over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Library
Target version:
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

Also available in: Atom PDF