mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 14:28:18 +00:00
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
61be376337
This commit is contained in:
@@ -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_blob = lp->ll_tv->vval.v_blob;
|
||||||
lp->ll_tv = NULL;
|
lp->ll_tv = NULL;
|
||||||
|
break;
|
||||||
} else {
|
} else {
|
||||||
// Get the number and item for the only or first index of the List.
|
// Get the number and item for the only or first index of the List.
|
||||||
if (empty1) {
|
if (empty1) {
|
||||||
|
Reference in New Issue
Block a user