usbip-rs/lib/examples
Davíð Steinn Geirsson b66cd0f7e9 fix: harden protocol handling against panics and malicious input
Replace all unimplemented!() panics with proper error returns across
URB, HID, and host handlers. Replace assert!() panics with error
returns in response serialization and string pool. Validate direction
field at runtime instead of only in debug builds.

Add allocation bounds checks to read_from_socket, read timeout to
URB loop, and clamp transfer_buffer_length to u16::MAX for control
transfers. Use correct USB/IP error status codes in submit failure
responses. Propagate control OUT transfer errors instead of swallowing
them. Fix compilation errors and doc comment copy-paste issues.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-22 10:41:54 +00:00
..
cdc_acm_serial.rs fix: harden protocol handling against panics and malicious input 2026-03-22 10:41:54 +00:00
hid_keyboard.rs fix: harden protocol handling against panics and malicious input 2026-03-22 10:41:54 +00:00
host.rs feat: add usbip-rs CLI tool with vsock transport 2026-03-22 10:41:42 +00:00