Commit 1cbe37e
fix: command injection + thread-safety hardening (panic-attack findings)
Add sanitize_shell_arg() to V-lang adapter — rejects shell metacharacters
in all user-supplied parameters across 13 invoke_* handlers (30+ injection
vectors closed). VQL query body now written to temp file instead of shell
interpolation. Add std.Thread.Mutex to all 17 cartridge FFI modules
protecting global mutable state at C-ABI export boundaries. Update
.gitignore (V-lang, .hypatia/), .gitattributes (.v/.zig/.idr/.so/.dylib),
and STATE.a2ml (Grade A-production, launch status).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cf67dfa commit 1cbe37e
21 files changed
Lines changed: 610 additions & 39 deletions
File tree
- .machine_readable
- adapter/v/src
- cartridges
- agent-mcp/ffi
- bsp-mcp/ffi
- cloud-mcp/ffi
- container-mcp/ffi
- dap-mcp/ffi
- database-mcp/ffi
- feedback-mcp/ffi
- fleet-mcp/ffi
- git-mcp/ffi
- iac-mcp/ffi
- k8s-mcp/ffi
- lsp-mcp/ffi
- observe-mcp/ffi
- proof-mcp/ffi
- queues-mcp/ffi
- secrets-mcp/ffi
- ssg-mcp/ffi
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
104 | 120 | | |
105 | 121 | | |
106 | 122 | | |
| |||
0 commit comments