Skip to content

Commit 98b3730

Browse files
committed
patch 9.0.0462: ASAN warning for integer overflow
Problem: ASAN warning for integer overflow. Solution: Check for tp_col to be MAXCOL.
1 parent 470a141 commit 98b3730

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/textprop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,7 @@ adjust_props_for_split(
22892289

22902290
*p = prop;
22912291
++prevprop.ga_len;
2292-
if (p->tp_col + p->tp_len >= kept)
2292+
if (p->tp_col != MAXCOL && p->tp_col + p->tp_len >= kept)
22932293
p->tp_len = kept - p->tp_col;
22942294
if (cont_next)
22952295
p->tp_flags |= TP_FLAG_CONT_NEXT;

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ static char *(features[]) =
703703

704704
static int included_patches[] =
705705
{ /* Add new patch number below this line */
706+
/**/
707+
462,
706708
/**/
707709
461,
708710
/**/

0 commit comments

Comments
 (0)