-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: g2.Serialize sporadic failure (#4626)
There was a long-standing bug that only occurred occasionally. Memory sanitizer found this nicely. The crux is that g2 uses field2 which is NOT the same size as uint256_t. Simplified the code to just either be normal serialization or a buffer of all set bits. --------- Co-authored-by: ludamad <[email protected]>
- Loading branch information
Showing
3 changed files
with
20 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters