-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#6584: Fix buffer overflow in dr_set_sve_vector_length (#6591)
Fixes a buffer overflow in dr_set_sve_vector_length(). Changes dr_set_sve_vector_length() to return a boolean, with a curiosity assert so we'll know if internal uses pass incorrect values. Updates the dr_set_sve_vector_length() test to check failure cases. Tested in an internal build with a memory tool where the overflow was detected: confirmed no error is reported anymore (with the raw2trace call to dr_set_sve_vector_length() put back to pass 0 for arm-on-x86). Fixes: #6584
- Loading branch information
1 parent
5106291
commit 4f8e12f
Showing
3 changed files
with
17 additions
and
10 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