generated from amazon-archives/__template_Apache-2.0
-
Couldn't load subscription status.
- Fork 129
Adjust PropertyClass of assertions to identify UB #3860
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
tautschnig
merged 14 commits into
model-checking:main
from
tautschnig:audit-property-class
Feb 18, 2025
Merged
Changes from 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
756d938
Adjust PropertyClass of assertions to identify UB
tautschnig 136dd83
Add copyright
tautschnig 0dec9b3
Fix missing files
tautschnig 09c4b1b
Merge remote-tracking branch 'origin/main' into audit-property-class
tautschnig 6ae59ae
Merge remote-tracking branch 'origin/main' into audit-property-class
tautschnig 4c7f6c5
Rewire MIR-level checks to safety or "unsupported" checks
tautschnig dba50e6
Fixup tests
tautschnig 0f5379c
fixup! Adjust PropertyClass of assertions to identify UB
tautschnig 4c11cdc
Merge remote-tracking branch 'origin/main' into audit-property-class
tautschnig 0cf1798
Clippy
tautschnig e711bb8
Apply suggestions from code review
tautschnig 6878f7d
Merge remote-tracking branch 'origin/main' into audit-property-class
tautschnig bf73207
Further review-feedback application
tautschnig 9c12d79
Add failure description
tautschnig 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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Failed Checks: Kani does not support reasoning about pointer to unallocated memory | ||
|
|
||
| Verification failed for - invalid_access::check_invalid_dyn_ptr | ||
| Complete - 3 successfully verified harnesses, 1 failures, 4 total. |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Failed Checks: Kani does not support reasoning about pointer to unallocated memory | ||
|
|
||
| Verification failed for - invalid_access::check_invalid_slice_ptr | ||
| Verification failed for - invalid_access::check_invalid_dyn_ptr | ||
| Complete - 4 successfully verified harnesses, 2 failures, 6 total. |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| Failed Checks: Kani does not support reasoning about pointer to unallocated memory | ||
|
|
||
| Verification failed for - invalid_access::check_invalid_array | ||
| Verification failed for - invalid_access::check_invalid_ptr | ||
| Complete - 3 successfully verified harnesses, 2 failures, 5 total. |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| VERIFICATION:- FAILED (encountered failures other than panics, which were unexpected) | ||
| Complete - 0 successfully verified harnesses, 2 failures, 2 total. | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| // Copyright Kani Contributors | ||
| // SPDX-License-Identifier: Apache-2.0 OR MIT | ||
|
|
||
| #[kani::proof] | ||
| #[kani::should_panic] | ||
| pub fn rust_ub_fails() { | ||
| let ptr = 0 as *const u32; | ||
| let _invalid_ref = unsafe { &*ptr }; | ||
| } | ||
|
|
||
| #[kani::proof] | ||
| #[kani::should_panic] | ||
| pub fn rust_ub_should_fail() { | ||
| let ptr = 10 as *const u32; | ||
| let _invalid_read = unsafe { *ptr }; | ||
| } |
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
Oops, something went wrong.
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.