Skip to content

Python will not convert long decimal strings to integers by default#11

Merged
MarkCBell merged 2 commits into
MarkCBell:masterfrom
NathanDunfield:remove_intsize_limit
Jun 19, 2026
Merged

Python will not convert long decimal strings to integers by default#11
MarkCBell merged 2 commits into
MarkCBell:masterfrom
NathanDunfield:remove_intsize_limit

Conversation

@NathanDunfield

Copy link
Copy Markdown
Contributor

By default, Python will only convert a decimal string of length at most 4300 to an integer, to protect against DDOS attacks not relevant here (CVE-2020-10735). As flipper can create larger integers than that, we remove this limitation (as SageMath does).

@MarkCBell MarkCBell merged commit 172a443 into MarkCBell:master Jun 19, 2026
19 checks passed
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