Skip to content

Validate byte counts before reading BufferStream data - #605

Open
jdotc1 wants to merge 1 commit into
dcmjs-org:0.xfrom
jdotc1:fix/validate-buffer-read-byte-counts
Open

jdotc1 wants to merge 1 commit into
dcmjs-org:0.xfrom
jdotc1:fix/validate-buffer-read-byte-counts

Conversation

@jdotc1

@jdotc1 jdotc1 commented Oct 14, 2026

Copy link
Copy Markdown

Reject negative, fractional, nonfinite, nonnumeric, and unsafe integer lengths before slicing data or changing the offset. The existing readArrayBuffer delegation receives the same protection.

Validation: reused the supplied round_3 focused boundary evidence (10 groups / 41 cases overall), including Valid integer and zero reads, bytes and cursor position, invalid counts at both entry points, and existing overread rejection. Latest upstream source exactly matches the reviewed baseline; the one-shot applicator confirmed checkout applicability and git diff --check passed. Unchanged cases were not rerun. Full package integration and complete DICOM parsing were not tested.

@netlify

netlify Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for dcmjs2 ready!

Name Link
🔨 Latest commit 8b6e7e6
🔍 Latest deploy log https://app.netlify.com/projects/dcmjs2/deploys/6acff8bb6c2cedd86b8329c5
😎 Deploy Preview https://deploy-preview-605--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.

@jdotc1

jdotc1 commented Oct 23, 2026

Copy link
Copy Markdown
Author

Could a maintainer approve the GitHub Actions runs for the current head (8b6e7e6)? These workflows are waiting for authorization:

Thank you.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant