unsafe-rust-review

Warn

Audited by Socket on Oct 30, 2026

2 alerts found:

Securityx2
SecurityMEDIUM
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%
SecurityMEDIUM
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
Analyzed At
Oct 30, 2026, 05:31 AM
Package URL
pkg:socket/skills-sh/google%2Frust-skills%2Funsafe-rust-review%2F@2da1a8bae04a29e8bf8af76174be64218791c27f706a609e062f5c29586425a8