Describe the bug
Attachment processing in daemon builds info slice without synchronization. Concurrent access from multiple clients causes data race.
To reproduce
- Build with -race flag
- Multiple clients request same email attachments
- Race detector reports concurrent slice access
Expected behavior
Use mutex or return copy of attachment info
Matcha version
master
OS
All
Additional context
File: daemon/handler.go lines 103-115
Data race under concurrent load
Describe the bug
Attachment processing in daemon builds info slice without synchronization. Concurrent access from multiple clients causes data race.
To reproduce
Expected behavior
Use mutex or return copy of attachment info
Matcha version
master
OS
All
Additional context
File: daemon/handler.go lines 103-115
Data race under concurrent load