File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed
clients/wraith-redops/spectre-implant/src/modules Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ members = [
3232
3333# Excluded: wraith-xdp requires eBPF toolchain; spectre-implant is no_std with
3434# custom #[panic_handler] and #[global_allocator] incompatible with workspace
35- # feature unification (std linked through shared deps)
35+ # feature unification (std linked through shared deps); fuzz/ is cargo-fuzz managed
3636exclude = [
3737 " crates/wraith-xdp" ,
3838 " clients/wraith-redops/spectre-implant" ,
39+ " fuzz" ,
3940]
4041
4142[workspace .package ]
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ impl Shell {
9292 let envp = [ core:: ptr:: null ( ) ] ;
9393
9494 sys_execve ( sh. as_ptr ( ) , argv. as_ptr ( ) , envp. as_ptr ( ) ) ;
95- // Zeroize in all cases (only reached if execve fails, but ensures cleanup)
95+ // Zeroize if execve returns (on failure); on success the process image is replaced and cmd_c is discarded.
9696 cmd_c. zeroize ( ) ;
9797 sys_exit ( 1 ) ;
9898 } else {
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ pub unsafe extern "C" fn wraith_session_establish(
4242 return WraithErrorCode :: InvalidArgument as c_int ;
4343 }
4444
45- // SAFETY: peer_id null check performed above (line 31) .
45+ // SAFETY: peer_id was checked for null earlier in this function .
4646 // Caller must ensure peer_id points to valid, properly aligned WraithNodeId.
4747 // This is documented in the function's safety contract.
4848 let peer_id_bytes = ( * peer_id) . bytes ;
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ pub unsafe extern "C" fn wraith_transfer_send_file(
5050 error_out
5151 ) ;
5252
53- // SAFETY: peer_id null check performed above (line 34) .
53+ // SAFETY: peer_id was checked for null in the argument validation above .
5454 // Caller must ensure peer_id points to valid, properly aligned WraithNodeId.
5555 // This is documented in the function's safety contract.
5656 let peer_id_bytes = ( * peer_id) . bytes ;
You can’t perform that action at this time.
0 commit comments