Skip to content

fix: validate edit integers before narrowing - #1033

Merged
andiwand merged 1 commit into
mainfrom
review/15-edit-integers
Oct 4, 2026
Merged

andiwand merged 1 commit into
mainfrom
review/15-edit-integers

Conversation

@andiwand

@andiwand andiwand commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

🤖 Generated with Claude Code

JSON numeric conversions could wrap a row, column or sheet index to another cell, truncate fractions, and reinterpret an unsigned element ID as a negative ID created earlier in the same edit. Validate integer types and ranges before narrowing, and retain unsigned identifiers at their full width. Text/document envelopes also reject truncated versions and non-array operations.

Two new document regressions cover invalid targets and unsigned-ID aliasing; the existing text-envelope test covers the new validation. Validation: 101 document-edit/text tests passed.

@andiwand
andiwand force-pushed the review/14-public-handles branch from 9b73920 to a93e2b5 Compare October 4, 2026 20:58
Base automatically changed from review/14-public-handles to main October 4, 2026 20:59
@andiwand
andiwand force-pushed the review/15-edit-integers branch from 76476c7 to 43af35d Compare October 4, 2026 21:05
@andiwand
andiwand merged commit 09dc9c8 into main Oct 4, 2026
17 checks passed
@andiwand
andiwand deleted the review/15-edit-integers branch October 4, 2026 21:07
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