Project

General

Profile

Actions

Feature #806

open

Maximum value returned by calcElementLength() is limited to 2^32-1

Added by Jörg Riesmeier over 7 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Library
Target version:
-
Start date:
2017-12-13
Due date:
% Done:

0%

Estimated time:
Module:
dcmdata
Operating System:
Compiler:

Description

The return value of calcElementLength() is defined as Uint32, which limits the maximum value to 2^32-1 (4,294,967,295). However, sequences and items with undefined length as well as DICOM datasets and fileformats can be larger than this. Therefore, it should be checked whether a size_t (or Uint64) could be returned instead of Uint32. This also applies to the getLength() method. Special attention should be paid where the 32-bit limit is still needed (e.g. for the length field of DICOM data elements).

Use cases where the current limitation might be an issue are Whole Slide Microscopic Images (WSI) and huge MPEG videos (where the pixel item containing the video stream exactly fits into the 32-bit length field, but the total size of the DICOM dataset exceeds this limit).


Related issues 2 (1 open1 closed)

Related to DCMTK - Bug #951: Refactor calcElementLength()New

Actions
Related to DCMTK - Bug #857: Implementation and documentation of calcElementLength() are inconsistentClosedJan Schlamelcher2018-11-26

Actions
Actions #1

Updated by Jörg Riesmeier over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Jörg Riesmeier almost 5 years ago

  • Related to Bug #951: Refactor calcElementLength() added
Actions #3

Updated by Jörg Riesmeier almost 5 years ago

  • Related to Bug #857: Implementation and documentation of calcElementLength() are inconsistent added
Actions

Also available in: Atom PDF