MantisBT - ITK
View Issue Details
0010423ITKpublic2010-03-16 11:182010-03-16 12:46
Ivan Macia 
Mathieu Malaterre 
normalcrashsometimes
closedwon't fix 
ITK-3-16 
 
0010423: Crash parsing DICOM tag
While trying to parse a DICOM tag (2005,0000) (Group Length I think) in gdcm::Document::ParseDES() it tries to skip the tag and the call

RemoveEntry( newDocEntry );

calls ElementSet::RemoveEntry() where the entry is not found. Instead the following call should be made:

set->RemoveEntry( newDocEntry );

which in my case calls SQEntry::RemoveEntry() which actually removes the entry. In the first case a hanging pointer is left at the end of SQItem::DocEntries which finally crashes when SQItem::AddEntry() is called for the next item.
No tags attached.
? IM_0001 (139,604) 2010-03-16 12:05
https://public.kitware.com/Bug/file/2976/IM_0001
Issue History
2010-03-16 11:18Ivan MaciaNew Issue
2010-03-16 12:05Ivan MaciaFile Added: IM_0001
2010-03-16 12:45Mathieu MalaterreStatusnew => assigned
2010-03-16 12:45Mathieu MalaterreAssigned To => Mathieu Malaterre
2010-03-16 12:45Mathieu MalaterreNote Added: 0019896
2010-03-16 12:46Mathieu MalaterreNote Added: 0019897
2010-03-16 12:46Mathieu MalaterreStatusassigned => closed
2010-03-16 12:46Mathieu MalaterreResolutionopen => won't fix

Notes
(0019896)
Mathieu Malaterre   
2010-03-16 12:45   
File is corrupted (mixture of implicit and explicit element).

GDCM 2.x properly handles it. Closing issue.
(0019897)
Mathieu Malaterre   
2010-03-16 12:46   
GDCM 1.x is feature frozen. Please switch to GDCM 2.x