To: vim_dev@googlegroups.com Subject: Patch 9.0.0462 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.0462 Problem: ASAN warning for integer overflow. Solution: Check for tp_col to be MAXCOL. Files: src/textprop.c *** ../vim-9.0.0461/src/textprop.c 2022-09-13 18:34:03.144578677 +0100 --- src/textprop.c 2022-09-14 01:18:03.838128664 +0100 *************** *** 2289,2295 **** *p = prop; ++prevprop.ga_len; ! if (p->tp_col + p->tp_len >= kept) p->tp_len = kept - p->tp_col; if (cont_next) p->tp_flags |= TP_FLAG_CONT_NEXT; --- 2289,2295 ---- *p = prop; ++prevprop.ga_len; ! 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; *** ../vim-9.0.0461/src/version.c 2022-09-14 01:27:17.632593480 +0100 --- src/version.c 2022-09-14 12:04:50.767536039 +0100 *************** *** 705,706 **** --- 705,708 ---- { /* Add new patch number below this line */ + /**/ + 462, /**/ -- hundred-and-one symptoms of being an internet addict: 64. The remote to the T.V. is missing...and you don't even care. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///