matcha
matcha copied to clipboard
BUG: Missing length validation before slice access in pidfile
Describe the bug Windows pidfile at daemon/pidfile_windows.go:24 uses strconv.Atoi() without checking data isn't empty before trimming.
To reproduce
- Empty PID file on Windows
- Trim/parse operations on empty data
- Potential panic or invalid PID
Expected behavior Validate data length before operations
Matcha version master
OS Windows
Additional context File: daemon/pidfile_windows.go line 24 No empty check on data
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.