matcha
matcha copied to clipboard
BUG: Missing error check on JSON marshal in daemon
Describe the bug JSON marshaling at daemon/handler.go:103-115 doesn't check errors. Corrupted attachment data could be sent to clients.
To reproduce
- Attach file with non-UTF8 filename
- json.Marshal() may fail silently
- Client receives malformed data
Expected behavior Check json.Marshal() errors, return error to client
Matcha version master
OS All
Additional context File: daemon/handler.go lines 103-115 Data corruption risk
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.