To: vim_dev@googlegroups.com Subject: Patch 8.2.1899 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- 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 ///