-
Notifications
You must be signed in to change notification settings - Fork 41
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 Invariant proofs for bytes, as_ptr, to_str #192
CStr Invariant proofs for bytes, as_ptr, to_str #192
Conversation
@rajathkotyal Could you please resolve the conflicts that just came up? |
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.
Hi @rajathkotyal, is it possible to use arbitrary_cstr
function in these harnesses?
Sure, updated code @celinval |
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.
Thanks!
Thanks @celinval , can we get a workflow approval for this PR? |
Towards #150
Verifies that the CStr safety invariant holds after calling :
bytes core::ffi::c_str
to_str core::ffi::c_str
as_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.