aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-06 06:22:01 +0800
committerGitHub <noreply@github.com>2022-08-06 06:22:01 +0800
commita308f53525d77e26c372af385f6f4d89638b3962 (patch)
treef7909deca0a9b3f9aaa8e39d2b132186a502bfc0 /src/nvim/buffer.c
parent85ad0e6b43b7890f11d8456f5396dcd7b69863b5 (diff)
downloadrneovim-a308f53525d77e26c372af385f6f4d89638b3962.tar.gz
rneovim-a308f53525d77e26c372af385f6f4d89638b3962.tar.bz2
rneovim-a308f53525d77e26c372af385f6f4d89638b3962.zip
fix(api): fix nvim_buf_set_text heap-use-after-free (#19644)
The line returned but ml_get_buf() may be freed by another call to ml_get_buf(), so it is necessary to make a copy.
Diffstat (limited to 'src/nvim/buffer.c')
0 files changed, 0 insertions, 0 deletions