ZyX
ecce981dba
coverity/13687: Do not allow NUL byte in region names
2017-04-09 22:02:51 +03:00
ZyX
5b4f07ee86
spellfile: Use old error
...
This makes first test not actually show any change in behaviour.
2017-04-09 22:02:51 +03:00
ZyX
8d982ab522
coverity/13686: Do not allow NUL byte in precondition regex
...
Before this commit it emitted e_spell_trunc in the first case and
treated file as completely valid on the second. While first is fine
(both errors are actually valid, though old error is probably better),
second results in incorrect regex used.
2017-04-09 22:02:36 +03:00
James McCoy
dbdd69e418
Merge pull request #6485 from jamessan/vim-8.0.0377
...
vim-patch:8.0.0377,8.0.0378,8.0.0322,8.0.0376
2017-04-09 13:25:15 -04:00
James McCoy
06a96df510
lint
2017-04-09 01:17:15 -04:00
James McCoy
4af6c60826
vim-patch:8.0.0376
...
Problem: Size computations in spell file reading are not exactly right.
Solution: Make "len" a "long" and check with LONG_MAX.
6d3c8586fc
2017-04-09 00:49:53 -04:00
James McCoy
b338bb9d6c
vim-patch:8.0.0322
...
Problem: Possible overflow with spell file where the tree length is
corrupted.
Solution: Check for an invalid length (suggested by shqking)
399c297aa9
CVE-2017-5953
2017-04-09 00:49:32 -04:00
James McCoy
ad66826abe
vim-patch:8.0.0378
...
Problem: Another possible overflow when reading corrupted undo file.
Solution: Check if allocated size is not too big. (King)
0c8485f0e4
CVE-2017-6350
2017-04-09 00:49:32 -04:00
James McCoy
fb66a7c69e
vim-patch:8.0.0377
...
Problem: Possible overflow when reading corrupted undo file.
Solution: Check if allocated size is not too big. (King)
3eb1637b1b
CVE-2017-6349
2017-04-09 00:49:26 -04:00
ZyX
b99cac2778
cmake: Do not use ExternalProject
...
Necessary argument (EXCLUDE_FROM_ALL) only appears in 3.1.0.
2017-04-09 06:17:02 +03:00
ZyX
c8243ad071
cmake: Do not build clint-error-files by default
2017-04-09 05:18:09 +03:00
Justin M. Keyes
699e8406b5
Merge #6439 from ZyX-I/fix-gc-failures
...
unittests: Force GC, fix GC failures in typval_spec
2017-04-09 04:05:07 +02:00
Justin M. Keyes
cc8f640fb1
Merge #6478 from ZyX-I/conv-fixes
...
Remove conversions which are not needed when &encoding is UTF-8
2017-04-09 03:59:55 +02:00
Nikolai Aleksandrovich Pavlov
3a6b8c28c8
cmake: Use archive instead of downloading *.json files ( #6482 )
2017-04-09 03:28:48 +02:00
ZyX
8e519a22dd
vim.h: Remove strange comments
2017-04-09 03:36:18 +03:00
ZyX
0f4b4c7529
headers: Remove useless HAVE_CONFIG_H macros
...
We do not have non-cmake build options, cmake always does configure_file.
2017-04-09 03:36:18 +03:00
ZyX
7701014b65
*: Remove useless asserts
2017-04-08 20:22:46 +03:00
dedmass
cd0a436622
refactor/single-include
...
Closes #6463
refactor/single-include: file_search.h
Closes #6455
refactor/single-include: hardcopy.h
Closes #6457
refactor/single-include: if_cscope.h
Closes #6458
refactor/single-include: mark.h
Closes #6461
refactor/single-include: mbyte.h
Closes #6462
refactor/single-include: memline.h
Closes #6464
refactor/single-include: menu.h
Closes #6468
refactor/single-include: ops.h
Closes #6470
2017-04-08 18:26:33 +02:00
ZyX
ab19fa1552
*: Fix linter errors
...
Drops comments `// for …` that do not pass linter for them being unmaintainable
and fast to becoming incomplete or even incorrect.
Mention @dedmass
2017-04-08 19:20:42 +03:00
ZyX
e814695223
eval/*code,shada: Drop support for converting UTF-8 from/to p_enc
...
Not needed any longer since p_enc is always utf-8.
2017-04-08 19:20:41 +03:00
ZyX
6006cb74ef
eval/decode: Omit calling convert_setup for each string
...
Uses the same trick eval/encode does.
2017-04-08 19:00:05 +03:00
ZyX
b3587a456b
shada: Initialize vimconv_T
2017-04-08 19:00:05 +03:00
ZyX
e586047a53
eval/decode,shada: Do not forget to clean up converters
2017-04-08 19:00:04 +03:00
dedmass
3fd9b70c48
refactor/single-include: fold.h #6456
2017-04-08 04:53:17 +02:00
dedmass
fd69c3f561
refactor/single-include: ex_getln.h #6454
2017-04-08 04:49:32 +02:00
dedmass
89deb6ff22
refactor/single-include: memline_defs.h #6465
2017-04-08 04:20:37 +02:00
dedmass
b47e1029a5
refactor/single-include: move.h #6469
2017-04-08 04:18:12 +02:00
dedmass
3d4a2ee9c7
refactor/single-include: ex_cmds.h #6453
2017-04-08 04:16:29 +02:00
dedmass
f4e97fe499
refactor/single-include: digraph.h #6444
2017-04-08 04:14:05 +02:00
dedmass
fd8f18bce2
refactor/single-include: cursor_shape.h #6442
2017-04-08 04:09:32 +02:00
James McCoy
123931e65e
lint
2017-04-07 16:38:06 -04:00
James McCoy
98dd9b8012
vim-patch:8.0.0550
...
Problem: Some etags format tags file use 0x01, breaking the parsing.
Solution: Use 0x02 for TAG_SEP. (James McCoy, closes vim/vim#1614 )
9585a1655b
2017-04-07 16:32:22 -04:00
James McCoy
20dc04470e
vim-patch:8.0.0499
...
Problem: taglist() does not prioritize tags for a buffer.
Solution: Add an optional buffer argument. (Duncan McDougall, closes vim/vim#1194 )
c6aafbaf3e
2017-04-07 16:18:04 -04:00
Justin M. Keyes
13352c00f1
win: os_get_hostname() #5416 ( #6413 )
2017-04-07 19:46:33 +02:00
Nicolas Hillegeer
1813076c44
eval: delimit string with NUL byte ( #6467 )
...
A recent refactor left cpy without a NUL terminator, simplify the code
instead of patching over it.
Instead of plain memcpy, it'd be better to employ harder to misuse string
functions made for this purpose like xstrlcpy(), but path_tail() takes
char_u arguments and returns them, leading to a lot of ugly casting.
Fixes #6431 .
2017-04-07 12:29:17 +02:00
Justin M. Keyes
30e1cda8ac
completion: fix segfault with ignorecase+infercase ( #6452 )
...
Helped-by: Matthew Malcomson <hardenedapple@gmail.com >
Closes #6451
2017-04-06 21:35:03 +02:00
Carlo Abelli
c501d7c432
refactor/single-include: diff.h ( #6443 )
2017-04-06 14:48:42 +02:00
Justin M. Keyes
a7f34e1991
options: remove 'guiheadroom'
2017-04-04 14:19:26 +02:00
Justin M. Keyes
e348e256f3
'guicursor': Disable by default for unknown terminals.
...
User can still set guicursor explicitly in init.vim.
Closes #5990
Closes #6403
2017-04-04 14:19:26 +02:00
Justin M. Keyes
3ccd59ee82
'guicursor': enabled=false if 'guicursor' is empty
...
Closes #6429
Closes #6430
2017-04-04 14:19:26 +02:00
Yichao Zhou
bc6d868d00
'listchars': Whitespace highlight group #6367
2017-04-03 14:10:40 +02:00
ZyX
ac87c7e5ae
fileio: Fix most linter errors
...
One error is still kept: buf_write function is too large.
2017-04-03 03:46:44 +03:00
ZyX
2dbd49f73c
fileio: Save details about E212 error
2017-04-03 03:02:17 +03:00
ZyX
97a7f4745d
eval: Add s flag, use p_fs by default, error out on unknown flag
2017-04-03 02:11:27 +03:00
ZyX
5dcf280445
fileio: Refactor msg_add_fname to something which needs no comments
2017-04-03 02:03:05 +03:00
ZyX
1c41b9c775
fileio: Clean up IObuff-manipulation mess
2017-04-03 01:39:09 +03:00
ZyX
8eb598c08e
fixup!
2017-04-03 00:44:49 +03:00
ZyX
8dd9c6edd8
message: Do not use IObuff in emsgf
2017-04-03 00:40:48 +03:00
ZyX
364709bedb
fileio: Refactor errmsg handling
...
Adds os_strerror() result to a number of places. Also since I could not track
where err\* variables are NULL and where they are not, using macros to make sure
that all three variables are set at once.
Removes #ifdef UNIX around the use of os_fsync, makes it use os_close in place
of close in some places.
2017-04-03 00:35:29 +03:00
ZyX
b10880dadc
eval: Make writefile() able to disable fsync()
2017-04-02 22:11:35 +03:00