matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Signed/unsigned comparison in email cursor calculation

Open andrinoff opened this issue 7 months ago • 2 comments

Describe the bug Cursor calculation at fetcher/fetcher.go:407 mixes uint32 and int. Type coercion causes incorrect offset with large values.

To reproduce

  1. Pass large limit value (> max int on 32-bit)
  2. chunkSize cast to uint32 overflows
  3. Wrong from position calculated

Expected behavior Use consistent types or validate range

Matcha version master

OS 32-bit systems primarily

Additional context File: fetcher/fetcher.go line 407 Type safety issue

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