rust
Warn
Audited by Socket on Sep 12, 2026
1 alert found:
SecuritySecurityevals/files/ffi.rs
MEDIUMSecurityMEDIUM
evals/files/ffi.rs
The adapter contains significant unsafe-boundary flaws. An invalid Packet pointer can cause undefined behavior, and an invalid or null data pointer can cause undefined behavior when the packet is enabled and len is nonzero. The unconstrained lifetime can expose dangling memory. The function should tie the output lifetime to a validated owner or return an owned copy, and the FFI contract must guarantee pointer validity, alignment, initialization, and buffer length. No malicious behavior is evident in this fragment.
Confidence: 98%Severity: 78%
Audit Metadata