mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-24 06:37:43 +00:00
* 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>