unsafe-rust-review
Warn
Audited by Socket on Sep 22, 2026
2 alerts found:
Securityx2Securitytestcases/test1.rs
MEDIUMSecurityMEDIUM
testcases/test1.rs
The code contains a serious Rust memory-safety flaw: it returns two completely overlapping mutable slices, violating exclusive aliasing requirements and potentially causing undefined behavior. No evidence of malicious behavior or supply-chain activity is present in this fragment.
Confidence: 99%Severity: 86%
Securitytestcases/test2.rs
MEDIUMSecurityMEDIUM
testcases/test2.rs
The code contains definite undefined behavior because it reads an uninitialized i32 through assume_init(). It should not be used; initialize the value before assume_init(), or use a safe initialized value. No malicious behavior is evident in this fragment.
Confidence: 99%Severity: 85%
Audit Metadata