Mercurial > vim
view src/testdir/test_tcl.vim @ 12335:df498e3e34fc v8.0.1047
patch 8.0.1047: buffer overflow in Ruby
commit https://github.com/vim/vim/commit/00ccf54630dc68a9b8aedb92b268f3b697081f68
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 3 15:17:48 2017 +0200
patch 8.0.1047: buffer overflow in Ruby
Problem: Buffer overflow in Ruby.
Solution: Allocate one more byte. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 03 Sep 2017 15:30:05 +0200 |
parents | ae0bbbbe2a38 |
children | c80acf74e7df |
line wrap: on
line source
" Tests for the Tcl interface. if !has('tcl') finish end function Test_tcldo() " Check deleting lines does not trigger ml_get error. new call setline(1, ['one', 'two', 'three']) tcldo ::vim::command %d_ bwipe! " Check switching to another buffer does not trigger ml_get error. new let wincount = winnr('$') call setline(1, ['one', 'two', 'three']) tcldo ::vim::command new call assert_equal(wincount + 1, winnr('$')) bwipe! bwipe! endfunc