Patch 8.2.4363
Problem: MS-Windows: running out of memory for a very long line.
Solution: Use a 32 bit value for MAXCOL also when ints are 64 bits.
Files: src/vim.h
*** ../vim-8.2.4362/src/vim.h 2022-02-11 21:13:31.055421058 +0000
--- src/vim.h 2022-02-12 21:08:44.969932594 +0000
***************
*** 1739,1745 ****
# define MAXCOL (0x3fffffffL) // maximum column number, 30 bits
# define MAXLNUM (0x3fffffffL) // maximum (invalid) line number
#else
! # define MAXCOL INT_MAX // maximum column number
# define MAXLNUM LONG_MAX // maximum (invalid) line number
#endif
--- 1739,1747 ----
# define MAXCOL (0x3fffffffL) // maximum column number, 30 bits
# define MAXLNUM (0x3fffffffL) // maximum (invalid) line number
#else
! // MAXCOL used to be INT_MAX, but with 64 bit ints that results in running
! // out of memory when trying to allocate a very long line.
! # define MAXCOL 0x7fffffffL // maximum column number
# define MAXLNUM LONG_MAX // maximum (invalid) line number
#endif
*** ../vim-8.2.4362/src/version.c 2022-02-12 20:46:11.975887702 +0000
--- src/version.c 2022-02-12 21:05:35.490194636 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4363,
/**/
--
To define recursion, we must first define recursion.
/// 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/20220212211701.A1B171C0DFF%40moolenaar.net.