From 66727e16079fbac6db3897b5c3736ec9fba995bb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 1 Mar 2017 22:17:05 +0100 Subject: patch 8.0.0398: illegal memory access with "t" Problem: Illegal memory access with "t". Solution: Use strncmp() instead of memcmp(). (Dominique Pelle, closes #1528) --- src/testdir/test_search.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/testdir/test_search.vim') diff --git a/src/testdir/test_search.vim b/src/testdir/test_search.vim index 040a8098a8..1a114c44c0 100644 --- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -294,3 +294,10 @@ func Test_searchpair() q! endfunc +func Test_searchc() + " These commands used to cause memory overflow in searchc(). + new + norm ixx + exe "norm 0t\u93cf" + bw! +endfunc -- cgit v1.2.3