]> granicus.if.org Git - vim/commit
patch 8.2.5046: vim_regsub() can overwrite the destination v8.2.5046
authorBram Moolenaar <Bram@vim.org>
Mon, 30 May 2022 19:58:55 +0000 (20:58 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 30 May 2022 19:58:55 +0000 (20:58 +0100)
commit4aaf3e7f4db599932d01d87e5bbcdc342cccee27
tree951e0288738fd50c88a74c94a8ddb8d899985b51
parent10db31f9493425a20f1e53d0f214e621f16d65de
patch 8.2.5046: vim_regsub() can overwrite the destination

Problem:    vim_regsub() can overwrite the destination.
Solution:   Pass the destination length, give an error when it doesn't fit.
src/eval.c
src/ex_cmds.c
src/proto/regexp.pro
src/regexp.c
src/regexp.h
src/version.c