Mercurial > vim
changeset 25607:54fef15ed370 v8.2.3340
patch 8.2.3340: accessing uninitialized pointer
Commit: https://github.com/vim/vim/commit/78a9c2e670d29349404b346e0aa90264cab19e9b
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 13 20:12:13 2021 +0200
patch 8.2.3340: accessing uninitialized pointer
Problem: Accessing uninitialized pointer.
Solution: Set pointer to NULL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 13 Aug 2021 20:15:03 +0200 |
parents | 2d0203a72f20 |
children | 8b76de69fa55 |
files | src/eval.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/eval.c +++ b/src/eval.c @@ -906,6 +906,7 @@ get_lval( { // using local variable lp->ll_tv = lval_root; + v = NULL; } else { @@ -967,6 +968,7 @@ get_lval( } if (in_vim9script() && lp->ll_valtype == NULL + && v != NULL && lp->ll_tv == &v->di_tv && ht != NULL && ht == get_script_local_ht()) {