diff options
Diffstat (limited to 'data/vim/patches/8.1.1025')
-rw-r--r-- | data/vim/patches/8.1.1025 | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/data/vim/patches/8.1.1025 b/data/vim/patches/8.1.1025 deleted file mode 100644 index 820624813..000000000 --- a/data/vim/patches/8.1.1025 +++ /dev/null @@ -1,57 +0,0 @@ -To: vim_dev@googlegroups.com -Subject: Patch 8.1.1025 -Fcc: outbox -From: Bram Moolenaar <Bram@moolenaar.net> -Mime-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit ------------- - -Patch 8.1.1025 -Problem: Checking NULL pointer after addition. (Coverity) -Solution: First check for NULL, then add the column. -Files: src/regexp.c - - -*** ../vim-8.1.1024/src/regexp.c 2019-03-02 10:13:36.800974804 +0100 ---- src/regexp.c 2019-03-20 21:14:49.926961731 +0100 -*************** -*** 7784,7792 **** - if (lnum < 0 || rsm.sm_mmatch->endpos[no].lnum < 0) - return NULL; - -! s = reg_getline_submatch(lnum) + rsm.sm_mmatch->startpos[no].col; -! if (s == NULL) /* anti-crash check, cannot happen? */ - break; - if (rsm.sm_mmatch->endpos[no].lnum == lnum) - { - /* Within one line: take form start to end col. */ ---- 7784,7793 ---- - if (lnum < 0 || rsm.sm_mmatch->endpos[no].lnum < 0) - return NULL; - -! s = reg_getline_submatch(lnum); -! if (s == NULL) // anti-crash check, cannot happen? - break; -+ s += rsm.sm_mmatch->startpos[no].col; - if (rsm.sm_mmatch->endpos[no].lnum == lnum) - { - /* Within one line: take form start to end col. */ -*** ../vim-8.1.1024/src/version.c 2019-03-20 20:38:40.378550979 +0100 ---- src/version.c 2019-03-20 21:15:30.486656439 +0100 -*************** -*** 781,782 **** ---- 781,784 ---- - { /* Add new patch number below this line */ -+ /**/ -+ 1025, - /**/ - --- -From "know your smileys": - :-{} Too much lipstick - - /// 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 /// |