changeset 14113:b75df03789f8 v8.1.0074

patch 8.1.0074: crash when running quickfix tests commit https://github.com/vim/vim/commit/d6b01a2d3884ee0abe10aad161f584889a496e3f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jun 18 21:53:28 2018 +0200 patch 8.1.0074: crash when running quickfix tests Problem: Crash when running quickfix tests. Solution: Do not alloc a new location list when checking for the reference to be still valid.
author Christian Brabandt <cb@256bit.org>
date Mon, 18 Jun 2018 22:00:08 +0200
parents 96654a031281
children c7b4f25ed91a
files src/quickfix.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -6350,7 +6350,7 @@ ex_cexpr(exarg_T *eap)
 						curbuf->b_fname, TRUE, curbuf);
 	    if (res > 0 && (eap->cmdidx == CMD_cexpr
 						   || eap->cmdidx == CMD_lexpr)
-		    && qi == ll_get_or_alloc_list(curwin))
+		    && qi == GET_LOC_LIST(curwin))
 		// Jump to the first error if autocmds didn't free the list.
 		qf_jump(qi, 0, 0, eap->forceit);
 	}
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    74,
+/**/
     73,
 /**/
     72,