Mercurial > vim
diff src/proto/vim9execute.pro @ 30302:6a1ed021a0c0 v9.0.0487
patch 9.0.0487: using freed memory with combination of closures
Commit: https://github.com/vim/vim/commit/acd6b9976bd939035025a16ceb4213a680827927
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 17 16:27:39 2022 +0100
patch 9.0.0487: using freed memory with combination of closures
Problem: Using freed memory with combination of closures.
Solution: Do not use a partial after it has been freed through the
funcstack.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Sep 2022 17:30:04 +0200 |
parents | 5c181bb6c855 |
children | fc0830246f49 |
line wrap: on
line diff
--- a/src/proto/vim9execute.pro +++ b/src/proto/vim9execute.pro @@ -1,7 +1,7 @@ /* vim9execute.c */ void to_string_error(vartype_T vartype); void update_has_breakpoint(ufunc_T *ufunc); -void funcstack_check_refcount(funcstack_T *funcstack); +int funcstack_check_refcount(funcstack_T *funcstack); int set_ref_in_funcstacks(int copyID); int in_def_function(void); ectx_T *clear_currrent_ectx(void);