commit | 7b17eb4b063a234376c1ec909ee293e42cff290c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jan 04 14:31:49 2023 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jan 04 14:31:49 2023 +0000 |
tree | f994c89ecf171083a5d8e5a718a21626a7ba5e08 | |
parent | f057171d8b562c72334fd7c15c89ff787358ce3a [diff] [blame] |
patch 9.0.1143: invalid memory access with bad 'statusline' value Problem: Invalid memory access with bad 'statusline' value. Solution: Avoid going over the NUL at the end.
diff --git a/src/buffer.c b/src/buffer.c index 9856898..4016822 100644 --- a/src/buffer.c +++ b/src/buffer.c
@@ -4617,6 +4617,8 @@ #endif if (vim_strchr(STL_ALL, *s) == NULL) { + if (*s == NUL) // can happen with "%0" + break; s++; continue; }