Blame SOURCES/0001-patch-8.2.4925-trailing-backslash-may-cause-reading-.patch

83f671
From 53a70289c2712808e6d4e88927e03cac01b470dd Mon Sep 17 00:00:00 2001
83f671
From: Bram Moolenaar <Bram@vim.org>
83f671
Date: Mon, 9 May 2022 13:15:07 +0100
83f671
Subject: [PATCH] patch 8.2.4925: trailing backslash may cause reading past end
83f671
 of line
83f671
83f671
Problem:    Trailing backslash may cause reading past end of line.
83f671
Solution:   Check for NUL after backslash.
83f671
---
83f671
 src/testdir/test_textobjects.vim | 10 +++++++++-
83f671
 src/textobject.c                 |  4 ++++
83f671
 src/version.c                    |  2 ++
83f671
 3 files changed, 15 insertions(+), 1 deletion(-)
83f671
83f671
diff --git a/src/textobject.c b/src/textobject.c
83f671
index e4a7db38e..edaa64c51 100644
83f671
--- a/src/textobject.c
83f671
+++ b/src/textobject.c
83f671
@@ -1664,7 +1664,11 @@ find_next_quote(
83f671
 	if (c == NUL)
83f671
 	    return -1;
83f671
 	else if (escape != NULL && vim_strchr(escape, c))
83f671
+	{
83f671
 	    ++col;
83f671
+	    if (line[col] == NUL)
83f671
+		return -1;
83f671
+	}
83f671
 	else if (c == quotechar)
83f671
 	    break;
83f671
 	if (has_mbyte)
83f671
-- 
83f671
2.36.1
83f671