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

fix(BytesOp::Extr): set st0 to false when bit size of the destination plus the offset exceeds string length #49

Merged
merged 1 commit into from
Feb 19, 2022

Conversation

6293
Copy link
Contributor

@6293 6293 commented Feb 14, 2022

Current implementation is silent on offset overflow, while docstring says If the bit size of the destination plus the initial offset exceeds string length the rest of the destination register bits is filled with zeros and st0 is set to false.

@6293 6293 marked this pull request as ready for review February 14, 2022 16:57
@6293 6293 changed the title fix: set st0 to false when bit size of the destination plus the offset exceeds string length fix(BytesOp::Extr): set st0 to false when bit size of the destination plus the offset exceeds string length Feb 14, 2022
@dr-orlovsky dr-orlovsky added bug Something isn't working *consensus* Issues affecting distributed concensus labels Feb 19, 2022
@dr-orlovsky dr-orlovsky added this to the 0.5.0 milestone Feb 19, 2022
Copy link
Member

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 1ea2250

Very good catch, thank you

@dr-orlovsky dr-orlovsky merged commit 3d632b5 into AluVM:master Feb 19, 2022
@6293 6293 mentioned this pull request Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working *consensus* Issues affecting distributed concensus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants