-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cstr verify safety contracts of unsafe functions strlen, from_bytes_with_nul_unchecked #193
Cstr verify safety contracts of unsafe functions strlen, from_bytes_with_nul_unchecked #193
Conversation
… . And stub for strlen + better documentation
@Yenyun035 can you fix the failing Rust tests and then we'll take a look if there's still issues? |
@carolynzech Sure. I annotated |
Towards #150 Similar PR Ref : #193 Annotates and verifies the safety contracts for the unsafe function : `from_ptr` - `core::ffi::c_str` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses. --------- Co-authored-by: Yenyun035 <[email protected]> Co-authored-by: Yenyun035 <[email protected]>
@rajathkotyal Can I please ask you to resolve conflicts that arose with #204 now merged? |
@tautschnig Fixed. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Thanks @Yenyun035 ! |
Towards #150
Annotates and verifies the safety contracts for the following unsafe functions:
from_bytes_with_nul_uncheked
core::ffi::c_str
strlen
core::ffi::c_str
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.