55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
|
|
From 1e56bda9048a9625bce6e660938c834c5c15b07d Mon Sep 17 00:00:00 2001
|
|||
|
|
From: Bram Moolenaar <Bram@vim.org>
|
|||
|
|
Date: Fri, 29 Jul 2022 15:28:27 +0100
|
|||
|
|
Subject: [PATCH 001/123] patch 9.0.0104: going beyond allocated memory when
|
|||
|
|
evaluating string constant
|
|||
|
|
|
|||
|
|
Problem: Going beyond allocated memory when evaluating string constant.
|
|||
|
|
Solution: Properly skip over <Key> form.
|
|||
|
|
---
|
|||
|
|
src/testdir/test_eval_stuff.vim | 5 +++++
|
|||
|
|
src/typval.c | 12 ++++++++++++
|
|||
|
|
2 files changed, 17 insertions(+)
|
|||
|
|
|
|||
|
|
diff --git a/src/testdir/test_eval_stuff.vim b/src/testdir/test_eval_stuff.vim
|
|||
|
|
index 3c168f2..c63082e 100644
|
|||
|
|
--- a/src/testdir/test_eval_stuff.vim
|
|||
|
|
+++ b/src/testdir/test_eval_stuff.vim
|
|||
|
|
@@ -617,4 +617,9 @@ func Test_modified_char_no_escape_special()
|
|||
|
|
nunmap <M-…>
|
|||
|
|
endfunc
|
|||
|
|
|
|||
|
|
+func Test_eval_string_in_special_key()
|
|||
|
|
+ " this was using the '{' inside <> as the start of an interpolated string
|
|||
|
|
+ silent! echo 0{1-$"\<S--{>n|nö% |