unsafe-rust-review

Warn

Audited by Socket on Sep 22, 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
Sep 22, 2026, 03:43 AM
Package URL
pkg:socket/skills-sh/google%2Frust-skills%2Funsafe-rust-review%2F@88ef87385d43e87612a46c5514af9f67c3b61cd5070305fef4ad219aca6c8d30
Security Audit — socket — unsafe-rust-review