From 98b373075e9a2ed642bc89f4f543e31d1428466f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 14 Sep 2022 12:06:53 +0100 Subject: [PATCH] patch 9.0.0462: ASAN warning for integer overflow Problem: ASAN warning for integer overflow. Solution: Check for tp_col to be MAXCOL. --- src/textprop.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/textprop.c b/src/textprop.c index d2536ce776..ba21e751bf 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -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; diff --git a/src/version.c b/src/version.c index 62a43a7087..f1805666c3 100644 --- a/src/version.c +++ b/src/version.c @@ -703,6 +703,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 462, /**/ 461, /**/ -- 2.47.2