-
Notifications
You must be signed in to change notification settings - Fork 720
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
constant_time: Clarify memory safety.
The C code correctly handles zero-length inputs by avoiding use of the pointers, but technically there may be UB since a Rust dangling pointer isn't a valid C pointer. Avoid the whole thing by adding a redundant length check on the Rust side.
- Loading branch information
1 parent
dcc7784
commit e5a1cf1
Showing
1 changed file
with
17 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