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

proof: fix panic for keys with all 0xff bytes #288

Merged
merged 1 commit into from
Jul 2, 2020

Conversation

erikgrinaker
Copy link
Contributor

@erikgrinaker erikgrinaker commented Jul 1, 2020

Fixes #286. The cpIncr() function incorrectly incremented all bytes for values that are all 0xff before appending 0x00. In these cases it should keep the original value and append 0x00.

@erikgrinaker erikgrinaker added the T:bug Type: Bug (Confirmed) label Jul 1, 2020
@erikgrinaker erikgrinaker self-assigned this Jul 1, 2020
Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

utACK

Base automatically changed from erik/proto-proofs to master July 2, 2020 13:20
@erikgrinaker erikgrinaker changed the title proof: fix proofs for all 0xff keys proof: fix panic for keys with all 0xff bytes Jul 2, 2020
@erikgrinaker erikgrinaker added the S:automerge Automatic merge and/or update Pull requests label Jul 2, 2020
@mergify mergify bot merged commit 1370b02 into master Jul 2, 2020
@mergify mergify bot deleted the erik/rangeproof-panic branch July 2, 2020 14:00
erikgrinaker added a commit that referenced this pull request Sep 25, 2020
Fixes #286. The `cpIncr()` function incorrectly incremented all bytes for values that are all `0xff` before appending `0x00`. In these cases it should keep the original value and append `0x00`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:automerge Automatic merge and/or update Pull requests T:bug Type: Bug (Confirmed)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GetWithProof() panics on key at end of keyspace
2 participants