To: vim_dev@googlegroups.com Subject: Patch 8.2.3734 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3734 Problem: Vim9: crash when no pattern match found. Solution: Check for error. Files: src/vim9execute.c *** ../vim-8.2.3733/src/vim9execute.c 2021-12-02 16:38:46.243764499 +0000 --- src/vim9execute.c 2021-12-04 11:49:50.740623802 +0000 *************** *** 1785,1790 **** --- 1785,1792 ---- ea.addr_type = ADDR_LINES; ea.cmd = iptr->isn_arg.string; parse_cmd_address(&ea, &error, FALSE); + if (ea.cmd == NULL) + goto on_error; if (error == NULL) error = ex_range_without_command(&ea); if (error != NULL) *** ../vim-8.2.3733/src/version.c 2021-12-04 11:56:30.352101259 +0000 --- src/version.c 2021-12-04 13:14:54.672277660 +0000 *************** *** 755,756 **** --- 755,758 ---- { /* Add new patch number below this line */ + /**/ + 3734, /**/ -- I recommend ordering large cargo containers of paper towels to make up whatever budget underruns you have. Paper products are always useful and they have the advantage of being completely flushable if you need to make room in the storage area later. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@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 ///