matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Missing bounds check on selectionOrder array

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Array creation at tui/folder_inbox.go:166 uses make([]uint32, len(m.selectionOrder)) without validating selectionOrder isn't empty. Could cause issues if empty.

To reproduce

  1. Trigger batch operation with empty selectionOrder
  2. Array operations on empty slice
  3. Potential index out of bounds

Expected behavior Validate selectionOrder has elements before creating array

Matcha version master

OS All

Additional context File: tui/folder_inbox.go line 166 Missing empty check

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