commit | 4aaf3e7f4db599932d01d87e5bbcdc342cccee27 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon May 30 20:58:55 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Mon May 30 20:58:55 2022 +0100 |
tree | 951e0288738fd50c88a74c94a8ddb8d899985b51 | |
parent | 10db31f9493425a20f1e53d0f214e621f16d65de [diff] [blame] |
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.
diff --git a/src/version.c b/src/version.c index f1b7010..b7693de 100644 --- a/src/version.c +++ b/src/version.c
@@ -735,6 +735,8 @@ static int included_patches[] = { /* Add new patch number below this line */ /**/ + 5046, +/**/ 5045, /**/ 5044,