Patch 8.2.4364
Problem:    MS-Windows: still running out of memory for a very long line.
Solution:   Check for negative length.
Files:      src/indent.c


*** ../vim-8.2.4363/src/indent.c        2022-02-12 20:46:11.975887702 +0000
--- src/indent.c        2022-02-12 21:58:31.256399596 +0000
***************
*** 1726,1732 ****
                        len = num_spaces + num_tabs;
                        old_len = (long)STRLEN(ptr);
                        new_len = old_len - col + start_col + len + 1;
!                       if (new_len >= MAXCOL)
                        {
                            emsg(_(e_resulting_text_too_long));
                            break;
--- 1726,1732 ----
                        len = num_spaces + num_tabs;
                        old_len = (long)STRLEN(ptr);
                        new_len = old_len - col + start_col + len + 1;
!                       if (new_len <= 0 || new_len >= MAXCOL)
                        {
                            emsg(_(e_resulting_text_too_long));
                            break;
*** ../vim-8.2.4363/src/version.c       2022-02-12 21:08:55.577918000 +0000
--- src/version.c       2022-02-12 21:59:23.940324533 +0000
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4364,
  /**/

-- 
Have you heard about the new Beowulf cluster? It's so fast, it executes
an infinite loop in 6 seconds.

 /// 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/20220212220038.00FFC1C0DFF%40moolenaar.net.

Raspunde prin e-mail lui