Skip to content

fix: validate complete output hex and string user IDs - #510

Merged
cedricfung merged 1 commit into
mainfrom
fix/validate-encoder-inputs
Sep 7, 2026
Merged

fix: validate complete output hex and string user IDs#510
cedricfung merged 1 commit into
mainfrom
fix/validate-encoder-inputs

Conversation

@YeungKC

@YeungKC YeungKC commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Reject malformed output keys and masks before hex decoding, including a valid 32-byte prefix followed by an odd nibble or non-hex suffix. Preserve uppercase hex and the default mask behavior.

Require decimal-string user IDs at runtime so JavaScript numbers cannot silently encode an already-rounded ID.

Addresses the two input-validation review findings in #509. Adds regression coverage for invalid inputs and preserved valid behavior.

Validation: 187 tests passed; 16 integration tests skipped. Lint and TypeScript checks passed.

@YeungKC
YeungKC requested a review from cedricfung September 7, 2026 07:45
@cedricfung
cedricfung merged commit d4e93b1 into main Sep 7, 2026
6 checks passed
@cedricfung
cedricfung deleted the fix/validate-encoder-inputs branch September 7, 2026 08:40
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