Patch 8.2.1899
Problem: Crash in out-of-memory situation.
Solution: Bail out if shell_name is NULL. (Dominique Pellé, closes #7196)
Files: src/ex_cmds.c
*** ../vim-8.2.1898/src/ex_cmds.c 2020-10-24 20:49:37.494683051 +0200
--- src/ex_cmds.c 2020-10-24 20:55:40.725560050 +0200
***************
*** 1544,1549 ****
--- 1544,1552 ----
int is_fish_shell;
char_u *shell_name = get_isolated_shell_name();
+ if (shell_name == NULL)
+ return NULL;
+
// Account for fish's different syntax for subshells
is_fish_shell = (fnamecmp(shell_name, "fish") == 0);
vim_free(shell_name);
*** ../vim-8.2.1898/src/version.c 2020-10-24 20:49:37.506683014 +0200
--- src/version.c 2020-10-24 20:56:34.817392859 +0200
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 1899,
/**/
--
hundred-and-one symptoms of being an internet addict:
124. You begin conversations with, "Who is your internet service provider?"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ 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/202010241858.09OIwfxg1102151%40masaka.moolenaar.net.