Patch 8.2.4466

7 views
Skip to first unread message

Bram Moolenaar

unread,
Feb 25, 2022, 12:42:42 PM2/25/22
to vim...@googlegroups.com

Patch 8.2.4466
Problem: MS-Windows: illegal memory access in installer when using
"create-directories" as the final argument.
Solution: Check the argument count. (Cam Sinclair, closes #9844)
Files: src/dosinst.c


*** ../vim-8.2.4465/src/dosinst.c 2021-07-15 13:14:26.288058735 +0100
--- src/dosinst.c 2022-02-25 17:36:14.808430660 +0000
***************
*** 2495,2501 ****
int vimfiles_dir_choice = (int)vimfiles_dir_none;

init_directories_choice();
! if (argv[i + 1][0] != '-')
{
i++;
if (strcmp(argv[i], "vim") == 0)
--- 2495,2501 ----
int vimfiles_dir_choice = (int)vimfiles_dir_none;

init_directories_choice();
! if (i + 1 < argc && argv[i + 1][0] != '-')
{
i++;
if (strcmp(argv[i], "vim") == 0)
*** ../vim-8.2.4465/src/version.c 2022-02-25 15:24:21.053157314 +0000
--- src/version.c 2022-02-25 17:37:30.756298034 +0000
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 4466,
/**/

--
hundred-and-one symptoms of being an internet addict:
95. Only communication in your household is through email.

/// 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 ///

Bram Moolenaar

unread,
Feb 25, 2022, 12:46:57 PM2/25/22
to vim...@googlegroups.com, Bram Moolenaar

I wrote:

> Patch 8.2.4466
> Problem: MS-Windows: illegal memory access in installer when using
> "create-directories" as the final argument.
> Solution: Check the argument count. (Cam Sinclair, closes #9844)
> Files: src/dosinst.c

Note that the git commit accidentally also has the changes for patch
8.2.4467.

--
hundred-and-one symptoms of being an internet addict:
97. Your mother tells you to remember something, and you look for
a File/Save command.
Reply all
Reply to author
Forward
0 new messages