Skip to content

Reject malformed decimal integer strings#3006

Open
samsamtrum wants to merge 1 commit into
Sovereign-Labs:devfrom
samsamtrum:reject-malformed-decimal-integers
Open

Reject malformed decimal integer strings#3006
samsamtrum wants to merge 1 commit into
Sovereign-Labs:devfrom
samsamtrum:reject-malformed-decimal-integers

Conversation

@samsamtrum

Copy link
Copy Markdown

The JS serializer currently parses decimal strings for smaller integer types with Number.parseInt, so inputs such as 12abc are accepted as 12.

This adds a canonical decimal string check before parsing and covers the malformed string case while preserving normal decimal strings.

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