Commit d748c6b
fix: replace create_subprocess_shell (#3265)
* fix: replace create_subprocess_shell with safe exec in start_vue_dev_server
Avoid shell injection risk by using create_subprocess_exec instead.
* fix: address Copilot review feedback on subprocess PR
- Capture proc from create_subprocess_exec, log PID, schedule proc.wait()
to avoid zombie processes on Vue dev server exit
- Rewrite test to use pytest style, ast-based function extraction,
and Path-relative server.py resolution
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test: guard against None return from ast.get_source_segment
ast.get_source_segment() returns None when source offsets are
unavailable; assert it is not None before using it in string checks.
* fix: remove untracked create_task in start_vue_dev_server to avoid zombie subprocess
* test: accept FunctionDef and AsyncFunctionDef in start_vue_dev_server check
* test: use explicit utf-8 encoding in read_text()
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent b6156b9 commit d748c6b
2 files changed
+24
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
160 | | - | |
| 159 | + | |
| 160 | + | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments