-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pattern and text loads so that they stay in bounds
The simd loads require that we can read all 16 bytes of memory from the pointer. Add function mask_load to read from shorter slices of memory if required. Follow the code, wherever we have the variable "safetext", we have already ensured we're only reading up until before the last 16 bytes of the input text, so here it is safe to use simd loads. This way, the code passes fuzz testing without errors, and keeps the benchmark results.
- Loading branch information
Showing
1 changed file
with
40 additions
and
4 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