diff options
author | Christ van Willegen <cvwillegen@gmail.com> | 2024-03-14 18:30:41 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-14 18:58:04 +0100 |
commit | c35fc03dbd47582b256776fb11f11d8ceb24f8f0 (patch) | |
tree | fdb3eea496d1062fb0cbc576e962eac88764de67 /runtime | |
parent | 010e1539d67442cc69a97bef6453efaf849d0db3 (diff) |
patch 9.1.0181: no overflow check for string formattingv9.1.0181
Problem: no overflow check for string formatting
Solution: Check message formatting function for overflow.
(Chris van Willegen)
closes: #13799
Signed-off-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index ab63b0ef09..c857fbc3de 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.1. Last change: 2024 Mar 13 +*builtin.txt* For Vim version 9.1. Last change: 2024 Mar 14 VIM REFERENCE MANUAL by Bram Moolenaar @@ -7105,6 +7105,9 @@ printf({fmt}, {expr1} ...) *printf()* 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: > echo printf("%s%1$s", "One", "Two") |