Problem: string_reduce() copies *rettv into argv[0] before calling
eval_expr_typval(). When the evaluator fails early, rettv is never
reset and still aliases argv[0]'s v_string. clear_tv(&argv[0]) frees
it, leaving rettv dangling. In vim9script get_func_tv() then frees it
again.
Solution: Null out argv[0].vval.v_string before clearing it when it
aliases rettv->vval.v_string.
Supported by AI
https://github.com/vim/vim/pull/21048
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()