rust

Warn

Audited by Socket on Oct 18, 2026

1 alert found:

Security
SecurityMEDIUM
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
Analyzed At
Oct 18, 2026, 11:02 AM
Package URL
pkg:socket/skills-sh/lynricsy%2Fhyperskills%2Frust%2F@72e1b8311f81eec65433339a89858049f924fe06ff855e7f5e3cb32d60f6549d