-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuzzing: Fix crypt2_load_fuzz to not touch const data
The crypt2_load_fuzz fuzzer needs to calculate LUKS2 header checksum to speed up fuzzing. Currently we incorrectly touch const data input. This patch - calculates only primary LUKS2 header checksum (ignores secondary header) - uses temporary struct for modified data - keps fuzzer going even with original data if checksum calc fails. Hopefully solves unknown write issue in fuzzer (not real utils) on oss-fuzz.
- Loading branch information
Showing
1 changed file
with
50 additions
and
48 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