Code Monkey home page Code Monkey logo

Comments (3)

pieper avatar pieper commented on June 16, 2024

Thanks for reporting and providing the data. You are right, this is a very minimal and malformed dataset, not even any pixel data. Still, avoiding an infinite loop would be nice, and loading if we can I guess. Can you create a PR?

bash-3.2$ dcmdump /tmp/untitled\ folder/infinite-loop.dcm 
W: DcmMetaInfo: No Group Length available in Meta Information Header

# Dicom-File-Format

# Dicom-Meta-Information-Header
# Used TransferSyntax: Little Endian Explicit
(0002,0002) UI =UltrasoundImageStorage                  #  28, 1 MediaStorageSOPClassUID
(0002,0003) UI [1.2.3]                                  #   6, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =LittleEndianExplicit                    #  20, 1 TransferSyntaxUID
(0002,0012) UI [1.2.3.4]                                #   8, 1 ImplementationClassUID

# Dicom-Data-Set
# Used TransferSyntax: Little Endian Explicit
(0008,0016) UI =UltrasoundImageStorage                  #  28, 1 SOPClassUID
(0008,0018) UI [1.1]                                    #   4, 1 SOPInstanceUID
(0008,0020) DA [20210125]                               #   8, 1 StudyDate
(0008,0030) TM [125808]                                 #   6, 1 StudyTime
(0008,0060) CS [US]                                     #   2, 1 Modality
(0020,000d) UI [1]                                      #   2, 1 StudyInstanceUID
(0020,000e) UI [1.1.1]                                  #   6, 1 SeriesInstanceUID

from dcmjs.

conrad-scherb avatar conrad-scherb commented on June 16, 2024

I've put up a PR now that causes a throw and reading to be abandoned if no meta length tag is present along with a test.

from dcmjs.

github-actions avatar github-actions commented on June 16, 2024

🎉 This issue has been resolved in version 0.29.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

from dcmjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.