forked from terl/lazysodium-java
-
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.
Prevent memory access errors in many native calls by adding checks
This is not comprehensive coverage, but should take care of a number of unguarded calls. It comes out of issue terl#81 in which a call to `cryptoSecretStreamPush` with an incorrectly sized array lead to a VM crash. - Add array checkers to BaseChecker - Simplify some existing checks by moving the `throw` into the check method; add reporting of which variable failed a check - Add checkers for SecretStream - Split PwHash.Checker.checkAll into individual check calls to reduce chance of positional argument errors
- Loading branch information
Showing
5 changed files
with
102 additions
and
67 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
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