]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1204: MS-Windows: crash when passing long string to expand() v9.1.1204
authorzeertzjq <zeertzjq@outlook.com>
Sat, 15 Mar 2025 08:53:32 +0000 (09:53 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 15 Mar 2025 08:53:32 +0000 (09:53 +0100)
commit00a749bd90e6b84e7e5132691d73fe9aa3fdff05
tree00ebb88bf4cda80abb476c32aa1976b64402ae87
parent96395e15125502e6c29bc93c58d688a2bdc31300
patch 9.1.1204: MS-Windows: crash when passing long string to expand()

Problem:  MS-Windows: crash when passing long string to expand() with
          'wildignorecase'.
Solution: Use the same buflen as unix_expandpath() in dos_expandpath().
          Remove an unnecessary STRLEN() while at it (zeertzjq).

closes: #16896

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/filepath.c
src/proto/filepath.pro
src/testdir/test_expand_func.vim
src/version.c