forked from rauc/rauc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/verity_hash: Get rid of off_t integers and use uint64_t.
This fixes lgtm checker error: | if (hash_level_size) | hash_level_size[i] = s; | if ((*hash_position + s) < *hash_position || | Testing for signed overflow may produce undefined results. | This alert was introduced in ae1b1149 months ago | (*hash_position + s) < 0) | return -EINVAL; by applying changes done in upstream commit 36fd8d6b. Original commit 36fd8d6b from cryptsetup: | Author: Milan Broz <[email protected]> | AuthorDate: Sat Feb 13 20:43:33 2021 +0100 | | Get rid of off_t integers and use uint64_t. | | Also move uint64 multiplication overflow check to internal library. Unlike the original commit, we rename but do not move uint64_mult_overflow(). Signed-off-by: Enrico Joerns <[email protected]>
- Loading branch information
Showing
4 changed files
with
31 additions
and
37 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
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