aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_stringbuffer.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-12-09 22:25:18 +0800
committerGitHub <noreply@github.com>2025-12-09 22:25:18 +0800
commit3bc9a5b5d2730eaf8181772b27dbc276296f479e (patch)
treea39c756f0d28274ef023898843b192cc4caadd9b /runtime/lua/vim/_stringbuffer.lua
parentdfbbc6dd6bc204e8ecb690ce6334e3929147010f (diff)
downloadrneovim-3bc9a5b5d2730eaf8181772b27dbc276296f479e.tar.gz
rneovim-3bc9a5b5d2730eaf8181772b27dbc276296f479e.tar.bz2
rneovim-3bc9a5b5d2730eaf8181772b27dbc276296f479e.zip
vim-patch:9.1.1963: diff: missing diff size limit for xdiff (#36877)
Problem: diff: missing diff size limit for xdiff Solution: Impose file size limit for internal diff (xdiff) (Yee Cheng Chin). Git imposes a hard cap on file size for content that it passes to xdiff (added to Git in dcd1742e56e, defined in xdiff-interface.h), due to integer overflow concerns in xdiff. Vim doesn't specify such a limit right now, which means it's possible for a user to diff a large file (1GB+) and trigger these overflow issues. Add the same size limit (1GB minus 1MB) to Vim and simply throws an error when Vim encounters files larger than said limit. For now, reuse the same error message regarding internal diff failures. There is no need to add the same limit for external diff as it's up to each tool to error check their input to decide what is appropriate or not. closes: vim/vim#18891 https://github.com/vim/vim/commit/4af6d9755cba0dd07e881172f2a6e0efe9986ddc Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions