diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-06 06:22:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-06 06:22:01 +0800 |
commit | a308f53525d77e26c372af385f6f4d89638b3962 (patch) | |
tree | f7909deca0a9b3f9aaa8e39d2b132186a502bfc0 /src/nvim/buffer.c | |
parent | 85ad0e6b43b7890f11d8456f5396dcd7b69863b5 (diff) | |
download | rneovim-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