matcha
matcha copied to clipboard
BUG: Signed/unsigned comparison in email cursor calculation
Describe the bug Cursor calculation at fetcher/fetcher.go:407 mixes uint32 and int. Type coercion causes incorrect offset with large values.
To reproduce
- Pass large limit value (> max int on 32-bit)
- chunkSize cast to uint32 overflows
- 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
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.