Skip to content

Commit

Permalink
handle odd cases with zero length sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
rcd committed Jun 25, 2014
1 parent 296efc9 commit 614630d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DICOM/IO/Reader/DicomReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private void ParseDataset(IByteSource source, object state) {

// Aeric Sylvan - https://github.com/rcd/fo-dicom/issues/62#issuecomment-46248073
// Fix reading of SQ with parsed VR of UN
if (source.Position > last)
if (source.Position > last || _length == 0)
continue;
else {
_state = ParseState.Value;
Expand Down

0 comments on commit 614630d

Please sign in to comment.