forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 48
Cstr verify safety contracts of unsafe functions strlen, from_bytes_with_nul_unchecked #193
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
Merged
carolynzech
merged 39 commits into
model-checking:main
from
rajathkotyal:c-0013-rajathm-part3
Dec 12, 2024
Merged
Changes from 7 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
64ddbff
Add to_bytes and to_bytes_with_nul harnesses
Yenyun035 1edbe31
Merge branch 'main' into c-0013-yenyunw-cstr-to-bytes
Yenyun035 4059184
Merge branch 'main' into c-0013-yenyunw-cstr-to-bytes
Yenyun035 8b15d35
add bytes, to_str and as_ptr proofs
rajathkotyal ec0e94c
Update c_str.rs
rajathkotyal e70a1ef
add harness for `from_ptr`, `from_bytes_with_nul_unchecked`, `strlen`…
rajathkotyal 7ddf9de
Fix contracts and harnesses
Yenyun035 937058a
Merge branch 'main' into c-0013-rajathm-part3
rajathkotyal 0a372c1
update stubbing and const proof
rajathkotyal e323bf3
update stub and cstr compile time proof
rajathkotyal e054f35
comment
rajathkotyal 8b95cb1
update cstr strlen
rajathkotyal eaf60eb
Merge branch 'main' into c-0013-rajathm-part3
rajathkotyal c54a51e
Update c_str.rs
rajathkotyal 11c3f8d
Merge branch 'main' into c-0013-rajathm-part3
rajathkotyal 00365ed
update pre and post conditions
rajathkotyal 549613d
Merge branch 'main' into c-0013-rajathm-part3
rajathkotyal b21eb00
delimiter typo
rajathkotyal 3f4be6d
retained only necessary checks pertaining to the function, cleaned up…
rajathkotyal 076e972
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 2e3528b
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 407fe08
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 600c859
Merge branch 'main' into c-0013-rajathm-part3
rajathkotyal 53588b4
removed redundant check
rajathkotyal 689c9d0
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 dbf278b
Fix import
Yenyun035 4301961
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 f330bf4
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 8c47af3
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 e0ef0dc
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 c5d8da3
Fix is_null_terminated not use issue
Yenyun035 0f075fc
Fix unused import error
carolynzech e675a37
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 6d0a1f0
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 6d19642
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 2789d95
Fix format && comments
Yenyun035 23c66a3
Formatting
Yenyun035 51462ff
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 0521c6b
Merge branch 'main' into c-0013-rajathm-part3
Yenyun035 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.