Mercurial > vim
view src/proto/clientserver.pro @ 27221:165a799b4129 v8.2.4139
patch 8.2.4139: using freed memory in expression abbreviation
Commit: https://github.com/vim/vim/commit/94075b2b0e8e3b75334799d2c082497fbf85ffa1
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 18 20:30:39 2022 +0000
patch 8.2.4139: using freed memory in expression abbreviation
Problem: Using freed memory if an expression abbreviation deletes the
abbreviation.
Solution: Do not access the pointer after evaluating the expression.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 18 Jan 2022 21:45:02 +0100 |
parents | 5e41b2e63c73 |
children |
line wrap: on
line source
/* clientserver.c */ void server_to_input_buf(char_u *str); char_u *eval_client_expr_to_string(char_u *expr); int sendToLocalVim(char_u *cmd, int asExpr, char_u **result); char_u *serverConvert(char_u *client_enc, char_u *data, char_u **tofree); void exec_on_server(mparm_T *parmp); void prepare_server(mparm_T *parmp); void f_remote_expr(typval_T *argvars, typval_T *rettv); void f_remote_foreground(typval_T *argvars, typval_T *rettv); void f_remote_peek(typval_T *argvars, typval_T *rettv); void f_remote_read(typval_T *argvars, typval_T *rettv); void f_remote_send(typval_T *argvars, typval_T *rettv); void f_remote_startserver(typval_T *argvars, typval_T *rettv); void f_server2client(typval_T *argvars, typval_T *rettv); void f_serverlist(typval_T *argvars, typval_T *rettv); /* vim: set ft=c : */