Skip to content

fix(interpreter): sandbox $$ to return 1 instead of host PID#464

Merged
chaliy merged 1 commit intomainfrom
claude/fix-425-Y2nIj
Mar 2, 2026
Merged

fix(interpreter): sandbox $$ to return 1 instead of host PID#464
chaliy merged 1 commit intomainfrom
claude/fix-425-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 2, 2026

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

  • Unit test: test_dollar_dollar_no_host_pid_leak

Closes #425

$$ was using std::process::id() which leaked the real OS PID. Now
returns fixed value 1 to maintain sandbox isolation.

Closes #425

https://claude.ai/code/session_01WZjYqxm5xMPAEe7FSHJkDy
@chaliy chaliy merged commit e40a5f6 into main Mar 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[L-1] $$ leaks real host process ID

2 participants