diff options
author | 2020-12-02 16:52:30 +0000 | |
---|---|---|
committer | 2020-12-02 16:52:30 +0000 | |
commit | 1ea95950577fdbc7fbbb66304fb651ff28065217 (patch) | |
tree | 4b563acea9fe42d07ef187c867d276ac37fb1c57 /usr.bin/tmux/window-buffer.c | |
parent | The skip steps must be set up for each attribute independently (diff) | |
download | wireguard-openbsd-1ea95950577fdbc7fbbb66304fb651ff28065217.tar.xz wireguard-openbsd-1ea95950577fdbc7fbbb66304fb651ff28065217.zip |
Prevent a TOCTOU race in single_thread_set() by extending the scope of the lock.
Make sure `ps_single' is set only once by checking then updating it without
releasing the lock.
Analyzed by and ok claudio@
Diffstat (limited to 'usr.bin/tmux/window-buffer.c')
0 files changed, 0 insertions, 0 deletions