matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Missing error check on JSON marshal in daemon

Open andrinoff opened this issue 7 months ago • 2 comments

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

  1. Attach file with non-UTF8 filename
  2. json.Marshal() may fail silently
  3. 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

andrinoff avatar Apr 21 '26 14:04 andrinoff

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.

floatpanebot avatar May 22 '26 06:05 floatpanebot

Closing due to inactivity. Reopen if still relevant.

floatpanebot avatar Jun 04 '26 19:06 floatpanebot