To: vim_dev@googlegroups.com Subject: Patch 8.0.1622 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1622 Problem: Possible NULL pointer dereferencey. (Coverity) Solution: Reverse the check for a NULL pointer. Files: src/quickfix.c *** ../vim-8.0.1621/src/quickfix.c 2018-03-06 17:43:18.589288912 +0100 --- src/quickfix.c 2018-03-20 13:28:50.509827097 +0100 *************** *** 4256,4262 **** goto theend; } ! if (s != NULL && *s == NUL) { /* Pattern is empty, use last search pattern. */ if (last_search_pat() == NULL) --- 4256,4262 ---- goto theend; } ! if (s == NULL || *s == NUL) { /* Pattern is empty, use last search pattern. */ if (last_search_pat() == NULL) *** ../vim-8.0.1621/src/version.c 2018-03-20 13:00:07.194308797 +0100 --- src/version.c 2018-03-20 13:29:55.309493509 +0100 *************** *** 768,769 **** --- 768,771 ---- { /* Add new patch number below this line */ + /**/ + 1622, /**/ -- hundred-and-one symptoms of being an internet addict: 30. Even though you died last week, you've managed to retain OPS on your favorite IRC channel. /// 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 ///