Files
rustdesk/libs
rustdeskandClaude Opus 5.5 8cf2c74a76 fix(clipboard): unix file server, reject range reads over the frame limit
A response larger than MAX_FRAME_LENGTH (1 GiB) cannot be encoded for
sending, yet the server allocated and read it first, then failed the send.
Reject such requests before allocating, so a peer can no longer make the
server allocate more than 1 GiB per request. Requests that work today are
unaffected.

Drop the extra allocation-failure log; the caller already logs the error.

Tests cover the wire decoding through read_file_contents (negative
cbRequested, nPositionLow past 2 GiB) and the frame-limit rejection. Tests
that use the global CLIP_FILES now take a shared lock.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 10:23:27 +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