Mercurial > vim
view runtime/compiler/go.vim @ 31475:9ef91bdd1ab4 v9.0.1070
patch 9.0.1070: reading beyond array size
Commit: https://github.com/vim/vim/commit/b26461715be41653e5982e72c794294702ecded9
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 17 15:35:43 2022 +0000
patch 9.0.1070: reading beyond array size
Problem: Reading beyond array size.
Solution: Only use name[0] and name[1], do not use "name" as a string.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 17 Dec 2022 16:45:03 +0100 |
parents | 1e8ebf870720 |
children | e1df51f68736 |
line wrap: on
line source
" Vim compiler file " Compiler: Go " Maintainer: David Barnett (https://github.com/google/vim-ft-go) " Last Change: 2014 Aug 16 if exists('current_compiler') finish endif let current_compiler = 'go' if exists(':CompilerSet') != 2 command -nargs=* CompilerSet setlocal <args> endif let s:save_cpo = &cpo set cpo-=C CompilerSet makeprg=go\ build CompilerSet errorformat= \%-G#\ %.%#, \%A%f:%l:%c:\ %m, \%A%f:%l:\ %m, \%C%*\\s%m, \%-G%.%# let &cpo = s:save_cpo unlet s:save_cpo " vim: sw=2 sts=2 et