Skip to content

Commit

Permalink
strings todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Matias Scharager committed Jul 11, 2024
1 parent e038b0f commit 9c2b7e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/kani/src/internal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ pub unsafe fn write_any_slim<T: Arbitrary>(pointer: *mut T) {
#[rustc_diagnostic_item = "KaniWriteAnyStr"]
#[inline(always)]
pub unsafe fn write_any_str(s: *mut str) {
(*s).as_bytes_mut().fill_with(u8::any)
//TODO: strings introduce new UB
//(*s).as_bytes_mut().fill_with(u8::any)
//TODO: String validation
unreachable!("strings are not yet implemented")
}

0 comments on commit 9c2b7e8

Please sign in to comment.