patch 8.2.0135: bracketed paste can still cause invalid memory access
Problem: Bracketed paste can still cause invalid memory access. (Dominique
Pelle)
Solution: Check for NULL pointer.
diff --git a/src/edit.c b/src/edit.c
index f2ae425..70b8fee 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4942,7 +4942,7 @@
int save_paste = p_paste;
// If the end code is too long we can't detect it, read everything.
- if (STRLEN(end) >= NUMBUFLEN)
+ if (end != NULL && STRLEN(end) >= NUMBUFLEN)
end = NULL;
++no_mapping;
allow_keys = 0;