From 9ac38129b6d409f73e29b1d51a5d459cf050410f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 2 Dec 2021 18:42:33 +0000 Subject: patch 8.2.3721: using memory freed by losing the clipboard selection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Using memory freed by losing the clipboard selection. (Dominique Pellé) Solution: Check y_array is still valid after calling changed_lines(). (closes #9253) --- src/errors.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/errors.h') diff --git a/src/errors.h b/src/errors.h index 1d6a3a3c66..047ff9c8f1 100644 --- a/src/errors.h +++ b/src/errors.h @@ -316,7 +316,8 @@ EXTERN char e_cannot_index_number[] INIT(= N_("E1062: Cannot index a Number")); EXTERN char e_type_mismatch_for_v_variable[] INIT(= N_("E1063: Type mismatch for v: variable")); -// E1064 unused +EXTERN char e_yank_register_changed_while_using_it[] + INIT(= N_("E1064: Yank register changed while using it")); // E1065 unused EXTERN char e_cannot_declare_a_register_str[] INIT(= N_("E1066: Cannot declare a register: %s")); -- cgit v1.2.3