Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeSentryAI/lockbud
/ Obj
Class
Obj
toys/use-after-free/src/main.rs:33–35 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
31
val.as_ref().map(Owned::as_raw).unwrap_or(ptr::null_mut())
32
}
33
struct Obj<T> {
34
ptr: AtomicPtr<T>,
35
}
36
impl<T> Obj<T> {
37
fn null() -> Self {
38
Obj {
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected