matcha
matcha copied to clipboard
BUG: Missing bounds check on selectionOrder array
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
- Trigger batch operation with empty selectionOrder
- Array operations on empty slice
- 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
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.