matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Missing length validation before slice access in pidfile

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Windows pidfile at daemon/pidfile_windows.go:24 uses strconv.Atoi() without checking data isn't empty before trimming.

To reproduce

  1. Empty PID file on Windows
  2. Trim/parse operations on empty data
  3. 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

andrinoff avatar Apr 21 '26 14:04 andrinoff

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.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot