matcha
matcha copied to clipboard
BUG: Email split without validation in inbox
Describe the bug Email parsing at tui/inbox.go:229 uses strings.SplitN(email, "@", 2) without validating result has 2 parts. Malformed email could cause index panic.
To reproduce
- Receive malformed email without @ symbol
- Split returns 1 element
- Accessing [1] panics
Expected behavior Check len(parts) == 2 before accessing parts[1]
Matcha version master
OS All
Additional context File: tui/inbox.go line 229 Missing bounds check on split result
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.