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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220914110740.91EA11C1539%40moolenaar.net.

Raspunde prin e-mail lui