-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite suspicious code around ancillary data
253 seems to be a hardcoded value without any particular reasoning. Move it to a constant and use a rounder value of 128. There were also troubles regarding alignment: the API asks us to pass an arbitrary byte buffer and then performs unaligned reads/writes. Workaround that by aligning the buffer manually. For more information, see rust-lang/rust#76915 (comment)
- Loading branch information
1 parent
6b950bd
commit 8b8234a
Showing
2 changed files
with
38 additions
and
14 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