Commit e40a5f6
fix(interpreter): sandbox $$ to return 1 instead of host PID (#464)
## Summary
- `$$` was leaking the real host process ID, which is a sandbox escape
- Changed to always return `"1"` as a safe sandboxed value
## Test plan
- [x] Unit test: `test_dollar_dollar_no_host_pid_leak`
Closes #425
Co-authored-by: Claude <noreply@anthropic.com>1 parent fa636e2 commit e40a5f6
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7704 | 7704 | | |
7705 | 7705 | | |
7706 | 7706 | | |
7707 | | - | |
7708 | | - | |
| 7707 | + | |
| 7708 | + | |
7709 | 7709 | | |
7710 | 7710 | | |
7711 | 7711 | | |
| |||
9532 | 9532 | | |
9533 | 9533 | | |
9534 | 9534 | | |
| 9535 | + | |
| 9536 | + | |
| 9537 | + | |
| 9538 | + | |
| 9539 | + | |
| 9540 | + | |
| 9541 | + | |
| 9542 | + | |
| 9543 | + | |
| 9544 | + | |
9535 | 9545 | | |
0 commit comments