Files
rustdesk/libs
rustdeskandClaude Opus 5.5 daff54387b fix(clipboard): unix file server, cap a single range read at 16 MiB
A peer could still make the server allocate and read up to the 1 GiB frame
limit per request. Cap the data a single range read returns at 16 MiB. The
read is clamped to the rest of the file first, and a larger one is refused
rather than shortened: a short response reads as end of file to IStream
callers on Windows and would silently truncate the copy.

macOS requests 4 MiB per range (BLOCK_SIZE) and FUSE reads are smaller. A
Windows client forwards the application's IStream::Read size, so only an
application reading more than 16 MiB in one call is affected.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 15:05:54 +08:00
..
2026-09-23 17:30:22 +08:00
2026-09-23 17:30:22 +08:00
2026-09-23 18:40:49 +08:00