mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.0112: illegal memory access when using 'cindent'
Problem: Illegal memory access when using 'cindent'. Solution: Check for NUL byte. (Dominique Pelle, closes #5470)
This commit is contained in:
@@ -582,6 +582,8 @@ cin_iscase(
|
||||
for (s += 4; *s; ++s)
|
||||
{
|
||||
s = cin_skipcomment(s);
|
||||
if (*s == NUL)
|
||||
break;
|
||||
if (*s == ':')
|
||||
{
|
||||
if (s[1] == ':') // skip over "::" for C++
|
||||
|
Reference in New Issue
Block a user