Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check BigInt size on serialization #996

Merged
merged 1 commit into from
Jun 6, 2024
Merged

Conversation

aslesarenko
Copy link
Member

@aslesarenko aslesarenko commented May 23, 2024

This PR introduces a new check during BigInt serialization in CoreDataSerializer.
This prevents oversized BigInt to be put into registers or ErgoTree constants and hence create unparsable boxes, which will be rejected by the blockchain.

closes #991

@aslesarenko aslesarenko added the C-enhancement Category: A PR with an enhancement or a proposed one in an issue. label May 23, 2024
@aslesarenko aslesarenko requested a review from kushti May 23, 2024 15:42
@aslesarenko aslesarenko added this to the v5.x milestone May 23, 2024
@aslesarenko aslesarenko self-assigned this May 25, 2024
@aslesarenko aslesarenko merged commit 4e32261 into develop Jun 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: A PR with an enhancement or a proposed one in an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Impossibility to deserialize 249+ bits big integers
2 participants