diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-22 06:29:35 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-25 16:56:13 +0000 |
| commit | 81222dac578589d8ee37408ad892250fdd2d6de3 (patch) | |
| tree | f01aba2b41b26ac9fbebcfca8a3f9e690a4decee /xmalloc.c | |
| parent | Merge branch 'pedantic' into master (diff) | |
selection: add a 2 second timeout when receiving clipboard data
When reading clipboard data, a malicious clipboard provider could
stall us forever, by not sending any data, and not closing the pipe.
This commit adds a timer_fd based timeout of 2 seconds. If the timer
triggers, we abort the clipboard receive.
Diffstat (limited to 'xmalloc.c')
0 files changed, 0 insertions, 0 deletions
