Skip to content

Fix increment logic for stream length in AsyncDicomReader - #597

Merged
wayfarer3130 merged 2 commits into
dcmjs-org:masterfrom
Iman974:patch-1
Nov 12, 2026
Merged

wayfarer3130 merged 2 commits into
dcmjs-org:masterfrom
Iman974:patch-1

Conversation

@Iman974

@Iman974 Iman974 commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

'length' property does not exist on Tag class, the typo results in a corruption of the stream offset (it becomes NaN) when either the tag group is 0 or the tag is DataSetTrailingPadding

'length' property does not exist on Tag class, the typo results in a corruption of the stream offset (it becomes `NaN`) when either the tag group is 0 or the tag is `DataSetTrailingPadding`
@netlify

netlify Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for dcmjs2 ready!

Name Link
🔨 Latest commit 6242e8d
🔍 Latest deploy log https://app.netlify.com/projects/dcmjs2/deploys/6af5cfeb8a56bd6e5a6c54bf
😎 Deploy Preview https://deploy-preview-597--dcmjs2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

wayfarer3130 added a commit that referenced this pull request Nov 12, 2026
…DicomReader (#640)

AsyncDicomReader skipped a (0000,xxxx) element or DataSetTrailingPadding
with stream.increment(tagObj.length). Tag has no length property, so the
stream offset became NaN and the read stopped silently, which dropped all
tags after that element. Use the value length from the tag header.

Port of #597 to 1.0-beta.

Co-authored-by: Iman Toumi <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@wayfarer3130
wayfarer3130 merged commit 7051081 into dcmjs-org:master Nov 12, 2026
8 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.53.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants