Skip to content

fix(image): guard raster dimensions - #20

Closed
ubugeeei wants to merge 1 commit into
mainfrom
codex/fix-image-dimension-overflow
Closed

fix(image): guard raster dimensions#20
ubugeeei wants to merge 1 commit into
mainfrom
codex/fix-image-dimension-overflow

Conversation

@ubugeeei

Copy link
Copy Markdown
Member

Summary

  • use checked arithmetic for decode buffer sizes
  • return structured errors for zero scale and oversized render dimensions
  • propagate render validation through the WASM canvas APIs

Closes #2
Closes #3

Validation

  • cargo test -p fastqr-image
  • cargo clippy -p fastqr-image -p fastqr-wasm --all-targets --target wasm32-unknown-unknown -- -D warnings

@ubugeeei

Copy link
Copy Markdown
Member Author

Landed via #27 after local vp run ci and final GitHub Actions CI passed. Closing this issue-scoped PR to keep the queue and PR list clean.

@ubugeeei ubugeeei closed this May 18, 2026
@ubugeeei
ubugeeei deleted the codex/fix-image-dimension-overflow branch May 18, 2026 04:49
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.

fix(wasm): validate render inputs before allocating canvas buffers fix(image): guard raster dimension arithmetic against overflow

1 participant