Commit 55de256
fix(security): panic-attack P10 — classify FFI ptrCast in cartridge_shim
ffi/cartridge_shim.zig toolIs(): add explicit safety doc explaining why
@ptrCast([*c]const u8 → [*:0]const u8) is safe at this C-ABI boundary —
ADR-0006 requires NUL-terminated tool_name; not a banned unsafe cast but a
legitimate FFI pattern at the cartridge ABI seam.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c95a347 commit 55de256
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | | - | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
0 commit comments