commit | f6d28fe2c95c678cc3202cc5dc825a3fcc709e93 | [log] [tgz] |
---|---|---|
author | Christian Brabandt <cb@256bit.org> | Tue Sep 05 20:18:06 2023 +0200 |
committer | Christian Brabandt <cb@256bit.org> | Tue Sep 05 20:18:06 2023 +0200 |
tree | a0acea7e99632dae8fd280bdadf932fc59435b2b | |
parent | d2a08ba0fa4a25f31cee9d9f33b0aa8237227387 [diff] [blame] |
patch 9.0.1873: [security] heap-buffer-overflow in vim_regsub_both Problem: heap-buffer-overflow in vim_regsub_both Solution: Disallow exchanging windows when textlock is active Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/window.c b/src/window.c index 1af2395..f77ede3 100644 --- a/src/window.c +++ b/src/window.c
@@ -1733,6 +1733,11 @@ beep_flush(); return; } + if (text_or_buf_locked()) + { + beep_flush(); + return; + } #ifdef FEAT_GUI need_mouse_correct = TRUE;