-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
safestringlib: unittests: do not crash on len > RSIZE_MAX_STR
In test for strtolowercase_s() strtouppercase_s(), that were checking RSIZE_MAX_STR enforcement have operated on read-only memory causing bus error and after the RSIZE_MAX_STR enlargement 9999 < RSIZE_MAX_STR Use RSIZE_MAX_STR + 1 to make len > RSIZE_MAX_STR Signed-off-by: Tomas Winkler <[email protected]>
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 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