Skip to content

🐛 improve pack string overflow errors#33

Open
rauhryan wants to merge 1 commit into
mainfrom
rr/descriptive-pack-errors
Open

🐛 improve pack string overflow errors#33
rauhryan wants to merge 1 commit into
mainfrom
rr/descriptive-pack-errors

Conversation

@rauhryan
Copy link
Copy Markdown
Collaborator

Summary

  • preflight packed string size before copying into the transfer buffer
  • throw descriptive RangeError for oversized text/element-id payloads instead of leaking raw TypedArray offset is out of bounds
  • document the transfer-buffer overflow error contract in the renderer spec
  • add pack tests for oversized text content and element ids

Test

  • deno test

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 10, 2026

Open in StackBlitz

npm i https://pkg.pr.new/clayterm@33

commit: a62376d

rauhryan added a commit that referenced this pull request May 10, 2026
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.

2 participants