Project

General

Profile

Actions

Bug #857

closed

Implementation and documentation of calcElementLength() are inconsistent

Added by Jörg Riesmeier almost 7 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Jan Schlamelcher
Category:
Library
Target version:
Start date:
2018-11-26
Due date:
% Done:

100%

Estimated time:
Module:
dcmdata
Operating System:
Compiler:

Description

Currently, both the implementation and the documentation of method calcElementLength() are inconsistent: Some classes use DCM_UndefinedLength and set the internal "erroFlag" in order to indicate an integer overflow (32-bit length field), others use OFnumeric_limits<Uint32>::max(), which happens to be the same value as DCM_UndefinedLength, but do not set the internal flag. The latter (OFnumeric_limits<>) is wrong (since it is an odd value), especially since the errorFlag is not set. Also the documentation of some derived classes is incorrect, claiming a different implementation (see e.g. DcmElement, DcmDataset, DcmPixelItem, DcmPixelSequence).

Using @copydoc, which currently always points to the base class DcmObject, makes things even worse...


Related issues 2 (2 open0 closed)

Related to DCMTK - Feature #806: Maximum value returned by calcElementLength() is limited to 2^32-1New2017-12-13

Actions
Precedes DCMTK - Bug #951: Refactor calcElementLength()New

Actions
Actions

Also available in: Atom PDF