mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.714
Problem: Illegal memory access when there are illegal bytes. Solution: Check the byte length of the character. (Dominique Pelle)
This commit is contained in:
@@ -6113,7 +6113,7 @@ do_class:
|
|||||||
{
|
{
|
||||||
if (ireg_ic && enc_utf8)
|
if (ireg_ic && enc_utf8)
|
||||||
cf = utf_fold(utf_ptr2char(opnd));
|
cf = utf_fold(utf_ptr2char(opnd));
|
||||||
while (count < maxcount)
|
while (count < maxcount && (*mb_ptr2len)(scan) >= len)
|
||||||
{
|
{
|
||||||
for (i = 0; i < len; ++i)
|
for (i = 0; i < len; ++i)
|
||||||
if (opnd[i] != scan[i])
|
if (opnd[i] != scan[i])
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
714,
|
||||||
/**/
|
/**/
|
||||||
713,
|
713,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user