MantisBT - ITK
View Issue Details
0010833ITKpublic2010-06-15 15:422010-08-02 15:55
Greg Sharp 
Mathieu Malaterre 
normalminoralways
closedfixed 
AllAllAll
ITK-3-18 
ITK-3-20 
0010833: GDCM parse fault for special SQ data elements
As per the dicom standard (Page 42 of PS 3.5-2009), special SQ data elements (fffe,e000), (fffe,e00d), and (fffe,e0dd) are always implicit VR. However, in certain circumstances, ITK/GDCM attempts to read these data elements in explicit VR mode. This fault causes a data truncation during read, and the remainder of the file is ignored.

Suggested fix:

My suggestion is to check for these special SQ elements, and make sure that they are always parsed using implicit VR mode. The attached patch does this by avoiding the call to FindDocEntryVR() for special SQ data elements.

No tags attached.
patch gdcm-sq-parse-bug.patch (816) 2010-06-15 15:42
https://public.kitware.com/Bug/file/3191/gdcm-sq-parse-bug.patch
? contour-anon.dcm (44,546) 2010-06-15 15:59
https://public.kitware.com/Bug/file/3192/contour-anon.dcm
Issue History
2010-06-15 15:42Greg SharpNew Issue
2010-06-15 15:42Greg SharpFile Added: gdcm-sq-parse-bug.patch
2010-06-15 15:59Greg SharpFile Added: contour-anon.dcm
2010-06-15 15:59Greg SharpNote Added: 0021022
2010-06-16 05:58Mathieu MalaterreStatusnew => assigned
2010-06-16 05:58Mathieu MalaterreAssigned To => Mathieu Malaterre
2010-08-02 15:55Mathieu MalaterreNote Added: 0021599
2010-08-02 15:55Mathieu MalaterreStatusassigned => closed
2010-08-02 15:55Mathieu MalaterreResolutionopen => fixed
2010-08-02 15:55Mathieu MalaterreFixed in Version => ITK-3-20

Notes
(0021022)
Greg Sharp   
2010-06-15 15:59   
Added test data to reproduce: contour-anon.dcm.
(0021599)
Mathieu Malaterre   
2010-08-02 15:55   
This has been fixed by:

http://itk.org/gitweb?p=ITK.git;a=commitdiff;h=efdf865348129cf34906b3fd9a7f8b12ea42c25f [^]