Patch 8.2.4364

8 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 12, 2022, 5:00:45 PM2/12/22
to vim...@googlegroups.com

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 -- Br...@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 ///
Reply all
Reply to author
Forward
0 new messages