Mercurial > vim
view runtime/indent/cpp.vim @ 15109:b91cd042c2fc v8.1.0565
patch 8.1.0565: asan complains about reading before allocated block
commit https://github.com/vim/vim/commit/10600db772a6b50093b8027509d7089c209d1e26
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 5 19:46:07 2018 +0100
patch 8.1.0565: asan complains about reading before allocated block
Problem: Asan complains about reading before allocated block.
Solution: Workaround: Avoid offset from becoming negative.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 05 Dec 2018 20:00:07 +0100 |
parents | 7bc41231fbc7 |
children | 4027cefc2aab |
line wrap: on
line source
" Vim indent file " Language: C++ " Maintainer: Bram Moolenaar <Bram@vim.org> " Last Change: 2008 Nov 29 " Only load this indent file when no other was loaded. if exists("b:did_indent") finish endif let b:did_indent = 1 " C++ indenting is built-in, thus this is very simple setlocal cindent let b:undo_indent = "setl cin<"