Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeSentryAI/lockbud
/ assume_write_fp
Function
assume_write_fp
toys/invalid-free/src/main.rs:11–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
9
}
10
11
fn assume_write_fp() {
12
let mut uninit = std::mem::MaybeUninit::<Vec<i32>>::uninit();
13
unsafe {
14
uninit.write(Vec::new());
15
uninit.assume_init();
16
}
17
}
18
19
fn assume_ptr_write_fp() {
20
#[derive(Debug)]
Callers
1
main
Function · 0.85
Calls
1
uninit
Function · 0.85
Tested by
no test coverage detected