Files
rustdesk/libs
fufesou dcb6291116 Fix/windows clipboard response leak (#17113)
* fix(clipboard): reject unsolicited Windows format data responses

Signed-off-by: fufesou <linlong1266@gmail.com>

* fix(clipboard): inline format response validation

Keep the existing callback name and allocation path. Remove the wrapper while retaining request matching and lock coverage through response notification.

Validation: all 3 clipboard unit tests pass. Sequential native checks cover early responses, wrong connections, duplicates, and error-path lock release. All 64 unsolicited 1 MiB responses are rejected with no measured private-memory growth.

The desktop paste checks recorded in the PR were performed before this behavior-preserving simplification.

Signed-off-by: fufesou <linlong1266@gmail.com>

* test(clipboard): remove standalone response regression test

Keep the PR focused on the Windows C fix. The native before and after memory measurements cover the reported leak without a test that starts a second process.

Signed-off-by: fufesou <linlong1266@gmail.com>

---------

Signed-off-by: fufesou <linlong1266@gmail.com>
2026-11-19 18:23:29 +08:00
..
2026-10-28 16:27:44 +08:00
2026-11-08 22:33:56 +08:00