Mercurial > vim
changeset 16036:89fb86821b4a v8.1.1023
patch 8.1.1023: may use NULL pointer when indexing a blob
commit https://github.com/vim/vim/commit/61be376337b0374d55a4b1d8206b2ec87ca54252
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 19 23:04:17 2019 +0100
patch 8.1.1023: may use NULL pointer when indexing a blob
Problem: May use NULL pointer when indexing a blob. (Coverity)
Solution: Break out of loop after using index on blob
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 19 Mar 2019 23:15:05 +0100 |
parents | 3aef7d9ea3f9 |
children | da819dd2128e |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -2208,6 +2208,7 @@ get_lval( } lp->ll_blob = lp->ll_tv->vval.v_blob; lp->ll_tv = NULL; + break; } else { @@ -9219,7 +9220,9 @@ last_set_msg(sctx_T script_ctx) } } -/* reset v:option_new, v:option_old and v:option_type */ +/* + * Reset v:option_new, v:option_old and v:option_type. + */ void reset_v_option_vars(void) {