Skip to content

Commit 3d0daf2

Browse files
authored
Merge pull request #58 from doublegate/copilot/sub-pr-57
Apply PR review feedback and fix fuzz workflow errors
2 parents 3e24a6c + 7fec002 commit 3d0daf2

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3636
exclude = [
3737
"crates/wraith-xdp",
3838
"clients/wraith-redops/spectre-implant",
39+
"fuzz",
3940
]
4041

4142
[workspace.package]

clients/wraith-redops/spectre-implant/src/modules/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

crates/wraith-ffi/src/session.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

crates/wraith-ffi/src/transfer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)