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 #1

Updated by Marco Eichelberg over 8 years ago

  • Assignee set to Marco Eichelberg
  • Priority changed from Low to Normal
  • Target version changed from 3.6.3 to 3.6.2
Actions #2

Updated by Jan Schlamelcher over 8 years ago

  • Assignee changed from Marco Eichelberg to Nikolas Goldhammer
Actions #3

Updated by Jan Schlamelcher over 8 years ago

  • Status changed from New to Closed
Actions #4

Updated by Jan Schlamelcher over 8 years ago

Fixed in commits #048b15696b8 and #967a05d5906c

Actions

Also available in: Atom PDF