matcha
matcha copied to clipboard
BUG: Missing boundary validation in filepicker cursor
Describe the bug Filepicker at tui/filepicker.go:178 accesses m.items[m.cursor] without bounds check. Rapid directory changes cause panic.
To reproduce
- Navigate to directory with many items
- Position cursor at bottom
- Rapidly change to directory with fewer items
- Cursor > len(items), panic
Expected behavior Validate cursor < len(items) before access
Matcha version master
OS All
Additional context File: tui/filepicker.go line 178 Index out of bounds panic
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.