Mercurial > vim
annotate src/testdir/test41.in @ 10158:dd0531938cb6 v7.4.2349
commit https://github.com/vim/vim/commit/2321ca2a78286bc026fa7f407281ddbeb04114bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 9 14:17:18 2016 +0200
patch 7.4.2349
Problem: Valgrind reports using uninitialzed memory. (Dominique Pelle)
Solution: Check the length before checking for a NUL.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 09 Sep 2016 14:30:08 +0200 |
parents | 3fc0f57ecb91 |
children |
rev | line source |
---|---|
7 | 1 Test for writing and reading a file of over 100 Kbyte |
2 | |
3 1 line: "This is the start" | |
4 3001 lines: "This is the leader" | |
5 1 line: "This is the middle" | |
6 3001 lines: "This is the trailer" | |
7 1 line: "This is the end" | |
8 | |
9 STARTTEST | |
10 :%d | |
11 aThis is the start | |
12 This is the leader | |
13 This is the middle | |
14 This is the trailer | |
15 This is the endkY3000p2GY3000p | |
16 :w! Xtest | |
17 :%d | |
18 :e! Xtest | |
19 :.w! test.out | |
20 3003G:.w >>test.out | |
21 6005G:.w >>test.out | |
22 :qa! | |
23 ENDTEST | |
24 |