mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
vim-patch:9.1.0181: no overflow check for string formatting (#27863)
Problem: no overflow check for string formatting
Solution: Check message formatting function for overflow.
(Chris van Willegen)
closes: vim/vim#13799
c35fc03dbd
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
This commit is contained in:
3
runtime/lua/vim/_meta/vimfn.lua
generated
3
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -6520,6 +6520,9 @@ function vim.fn.prevnonblank(lnum) end
|
||||
--- echo printf("%1$*2$.*3$f", 1.4142135, 6, 2)
|
||||
--- < 1.41
|
||||
---
|
||||
--- You will get an overflow error |E1510|, when the field-width
|
||||
--- or precision will result in a string longer than 6400 chars.
|
||||
---
|
||||
--- *E1500*
|
||||
--- You cannot mix positional and non-positional arguments: >vim
|
||||
--- echo printf("%s%1$s", "One", "Two")
|
||||
|
Reference in New Issue
Block a user