[Gdcm-hackers] [ gdcm-Bugs-3473371 ] Crash when using gdcmstreamImageReader on some RF images
Cross-platform DICOM implementation
Brought to you by:
malat
|
From: SourceForge.net <no...@so...> - 2012-06-19 08:15:58
|
Bugs item #3473371, was opened at 2012-01-13 00:41 Message generated for change (Comment added) made by malat You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=739587&aid=3473371&group_id=137895 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General (default) >Group: 2.2.1 >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Pierre Le Duff (pleduff) Assigned to: Mathieu Malaterre (malat) Summary: Crash when using gdcmstreamImageReader on some RF images Initial Comment: When I try to read a file with gdcmStreamImageReader it crashes because it looks after some dataElement that didnt exist in the dicom file. DataElement seq = ds_t.GetDataElement( Tag(0x0048,0x0200) ); SmartPointer<SequenceOfItems> sqi = seq.GetValueAsSQ(); Item itemL = sqi->GetItem(res); DataSet &subds_L = itemL.GetNestedDataSet(); DataElement brrL = subds_L.GetDataElement( Tag(0x0048,0x0202) ); Element<gdcm::VR::US,gdcm::VM::VM2> elL1; elL1.SetFromDataElement( brrL ); extent[0] = elL1.GetValue(0); extent[1] = elL1.GetValue(1); extent[2] = res; It should become : if ( ds_t.FindDataElement( Tag(0x0048,0x0200) ); { DataElement seq = ds_t.GetDataElement( Tag(0x0048,0x0200) ); SmartPointer<SequenceOfItems> sqi = seq.GetValueAsSQ(); .... ---------------------------------------------------------------------- >Comment By: Mathieu Malaterre (malat) Date: 2012-06-19 01:15 Message: This can be considered fixed. The code for Whole Slides has been commented out. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=739587&aid=3473371&group_id=137895 |