diff options
author | Sean Dewar <seandewar@users.noreply.github.com> | 2020-11-24 21:16:13 +0000 |
---|---|---|
committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-09-15 22:57:52 +0100 |
commit | e7772c051fde36aa856d413baf6bef6ef6cd82d4 (patch) | |
tree | 392b7fb6b60da44c49fe696b2966249a9420bd98 /src/nvim/eval.c | |
parent | bd9c787b4f3ec6d539246c24499bdf80c85248cf (diff) | |
download | rneovim-e7772c051fde36aa856d413baf6bef6ef6cd82d4.tar.gz rneovim-e7772c051fde36aa856d413baf6bef6ef6cd82d4.tar.bz2 rneovim-e7772c051fde36aa856d413baf6bef6ef6cd82d4.zip |
vim-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
https://github.com/vim/vim/commit/61be376337b0374d55a4b1d8206b2ec87ca54252
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index b16dfad48b..9d03a94d71 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -2274,6 +2274,7 @@ char_u *get_lval(char_u *const name, typval_T *const rettv, } lp->ll_blob = lp->ll_tv->vval.v_blob; lp->ll_tv = NULL; + break; } else { // Get the number and item for the only or first index of the List. if (empty1) { |