mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.0.0462: ASAN warning for integer overflow
Problem: ASAN warning for integer overflow. Solution: Check for tp_col to be MAXCOL.
This commit is contained in:
parent
470a14140b
commit
98b373075e
@ -2289,7 +2289,7 @@ adjust_props_for_split(
|
||||
|
||||
*p = prop;
|
||||
++prevprop.ga_len;
|
||||
if (p->tp_col + p->tp_len >= kept)
|
||||
if (p->tp_col != MAXCOL && p->tp_col + p->tp_len >= kept)
|
||||
p->tp_len = kept - p->tp_col;
|
||||
if (cont_next)
|
||||
p->tp_flags |= TP_FLAG_CONT_NEXT;
|
||||
|
@ -703,6 +703,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
462,
|
||||
/**/
|
||||
461,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user