Mercurial > vim
view ci/if_ver-cmd.vim @ 28741:b44f15083faf v8.2.4895
patch 8.2.4895: buffer overflow with invalid command with composing chars
Commit: https://github.com/vim/vim/commit/d88934406c5375d88f8f1b65331c9f0cab68cc6c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 6 20:38:47 2022 +0100
patch 8.2.4895: buffer overflow with invalid command with composing chars
Problem: Buffer overflow with invalid command with composing chars.
Solution: Check that the whole character fits in the buffer.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 06 May 2022 21:45:02 +0200 |
parents | 27ff44268da5 |
children |
line wrap: on
line source
" Provide 'PrintVer' command to print the interface versions. func s:print_ver(lang, ...) if has(a:lang) exec a:lang join(a:000) else echo 'N/A' endif echo '' endfunc command -nargs=+ PrintVer call <SID>print_ver(<f-args>)