Package: vim / 2:8.0.0197-4+deb9u3

Metadata

Package Version Patches format
vim 2:8.0.0197-4+deb9u3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
upstream/Support defining compilation date in SOURCE_DATE_EPOCH.patch | (download)

src/config.h.in | 3 3 + 0 - 0 !
src/configure.ac | 10 10 + 0 - 0 !
src/version.c | 6 6 + 0 - 0 !
3 files changed, 19 insertions(+)

 support defining compilation date in $source_date_epoch

There is an ongoing effort[0] to make FOSS software reproducibly
buildable.  In order to make Vim build reproducibly, it is necessary to
allow defining the date/time that is part of VIM_VERSION_LONG as part of
the build process.

This commit enables that by adding support for the SOURCE_DATE_EPOCH
spec[1].  When the $SOURCE_DATE_EPOCH environment variable is defined,
it will be used to populate the BUILD_DATE preprocessor define.

If BUILD_DATE is not defined, the existing behavior of relying on the
preprocessor's __DATE__/__TIME__ symbols will be used.

[0]: https://reproducible-builds.org/
[1]: https://reproducible-builds.org/specs/source-date-epoch/

debian/Support sourcing a vimrc.tiny when Vim is invoked as vi.patch | (download)

src/main.c | 14 13 + 1 - 0 !
src/os_unix.h | 3 3 + 0 - 0 !
src/structs.h | 3 3 + 0 - 0 !
3 files changed, 19 insertions(+), 1 deletion(-)

 support sourcing a vimrc.tiny when vim is invoked as vi

This is used only in the vim-tiny package to allow a specific
configuration for vim-tiny's vi.  The vim-tiny package is substantially
debian/Detect the rst filetype using the contents of the file.patch | (download)

runtime/scripts.vim | 8 8 + 0 - 0 !
1 file changed, 8 insertions(+)

 detect the rst filetype using the contents of the file

Closes: #382541

debian/Add recognition of more LaTeX commands for tex filetype d.patch | (download)

runtime/filetype.vim | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 add recognition of more latex commands for tex filetype detection

Since filetype detection of TeX files defaults to plaintex, we've added
detection of some additional LaTeX commands to help sway the detection
to LaTeX.

Closes: #384479
Signed-off-by: James McCoy <jamessan@debian.org>

debian/Document Debian s decision to disable modelines by defaul.patch | (download)

runtime/doc/options.txt | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 document debian's decision to disable modelines by default

Modelines have historically been a source of vulnerabilities in Vim.
As long as it remains a "blacklist suspected/proven dangerous options"
instead of a "whitelist allowed options" piece of functionality,
Debian's system-wide vimrc will maintain this setting.  As such, the
documentation needs to be updated to reflect the induced behavior.

Closes: #472522
Signed-off-by: James McCoy <jamessan@debian.org>

upstream/Add Zesty Zapus to deb changelog sources syntax files.patch | (download)

runtime/syntax/debchangelog.vim | 4 2 + 2 - 0 !
runtime/syntax/debsources.vim | 4 2 + 2 - 0 !
2 files changed, 4 insertions(+), 4 deletions(-)

 add zesty zapus to deb{changelog,sources} syntax files


upstream/debcontrol.vim Add sections for Rust and JavaScript.patch | (download)

runtime/syntax/debcontrol.vim | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 debcontrol.vim: add sections for rust and javascript

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.0.0322 possible overflow with corrupted spell fil.patch | (download)

src/spellfile.c | 3 3 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 5 insertions(+)

 patch 8.0.0322: possible overflow with corrupted spell file

Problem:    Possible overflow with spell file where the tree length is
            corrupted.
Solution:   Check for an invalid length (suggested by shqking)

upstream/patch 8.0.0377 possible overflow when reading corrupted u.patch | (download)

src/undo.c | 5 3 + 2 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 5 insertions(+), 2 deletions(-)

 patch 8.0.0377: possible overflow when reading corrupted undo file

Problem:    Possible overflow when reading corrupted undo file.
Solution:   Check if allocated size is not too big. (King)

upstream/patch 8.0.0378 possible overflow when reading corrupted u.patch | (download)

src/undo.c | 7 3 + 4 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 5 insertions(+), 4 deletions(-)

 patch 8.0.0378: possible overflow when reading corrupted undo file

Problem:    Another possible overflow when reading corrupted undo file.
Solution:   Check if allocated size is not too big. (King)

upstream/patch 8.0.0550 cannot parse some etags format tags file.patch | (download)

src/tag.c | 13 7 + 6 - 0 !
src/testdir/test_taglist.vim | 39 39 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 48 insertions(+), 6 deletions(-)

 patch 8.0.0550: cannot parse some etags format tags file

Problem:    Some etags format tags file use 0x01, breaking the parsing.
Solution:   Use 0x02 for TAG_SEP. (James McCoy, closes #1614)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/Update releases in deb changelog sources syntax files.patch | (download)

runtime/syntax/debchangelog.vim | 12 6 + 6 - 0 !
runtime/syntax/debsources.vim | 10 5 + 5 - 0 !
2 files changed, 11 insertions(+), 11 deletions(-)

 update releases in deb{changelog,sources} syntax files

- Add artful (Aardvark) to both
- Add jessie-backports-sloppy, stretch-backports, and stretch-security
  to debchangelog
- debchangelog: Make urgency/binNMU variables script-local to avoid
  namespace pollution
- debsource: Require word boundary around distribution name.

Closes: #859247
Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.0.0703 illegal memory access with empty doau comm.patch | (download)

src/fileio.c | 7 4 + 3 - 0 !
src/testdir/test_autocmd.vim | 4 4 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 10 insertions(+), 3 deletions(-)

 patch 8.0.0703: illegal memory access with empty :doau command

Problem:    Illegal memory access with empty :doau command.
Solution:   Check the event for being out of range. (James McCoy)

upstream/patch 8.0.0706 crash when cancelling the cmdline window i.patch | (download)

src/ex_getln.c | 6 6 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 8 insertions(+)

 patch 8.0.0706: crash when cancelling the cmdline window in ex mode

Problem:    Crash when cancelling the cmdline window in Ex mode. (James McCoy)
Solution:   Do not set cmdbuff to NULL, make it empty.

upstream/patch 8.0.0707 freeing wrong memory with certain autocomm.patch | (download)

src/ex_cmds.c | 4 2 + 2 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 4 insertions(+), 2 deletions(-)

 patch 8.0.0707: freeing wrong memory with certain autocommands

Problem:    Freeing wrong memory when manipulating buffers in autocommands.
            (James McCoy)
Solution:   Also set the w_s pointer if w_buffer was NULL.

upstream/patch 8.0.0649 when opening a help file the filetype is s.patch | (download)

runtime/filetype.vim | 5 4 + 1 - 0 !
src/ex_cmds.c | 5 3 + 2 - 0 !
src/option.c | 16 13 + 3 - 0 !
src/version.c | 2 2 + 0 - 0 !
4 files changed, 22 insertions(+), 6 deletions(-)

 patch 8.0.0649: when opening a help file the filetype is set several
 times

Problem:    When opening a help file the filetype is set several times.
Solution:   When setting the filetype to the same value from a modeline, don't
            trigger FileType autocommands.  Don't set the filetype to "help"
            when it's already set correctly.

(cherry picked from commit 9049298f8d0bbc237b7c666c7ad6cdabe738e8fc)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.0.0651 build failure without the auto command fea.patch | (download)

src/ex_cmds.c | 2 2 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 4 insertions(+)

 patch 8.0.0651: build failure without the auto command feature

Problem:    Build failure without the auto command feature.
Solution:   Add #ifdef. (closes #1782)

(cherry picked from commit 157069b04e64eff72d2b34a2f727dfb6e2190cf3)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0066 nasty autocommand causes using freed memor.patch | (download)

src/option.c | 18 12 + 6 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 14 insertions(+), 6 deletions(-)

 patch 8.1.0066: nasty autocommand causes using freed memory

Problem:    Nasty autocommand causes using freed memory. (Dominique Pelle)
Solution:   Do not force executing autocommands if the value of 'syntax' or
            'filetype' did not change.

(cherry picked from commit c3ffc9b8d3015dc5280b297b4e3deb4f34944bd4)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0067 syntax highlighting not working when re en.patch | (download)

src/option.c | 29 20 + 9 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 22 insertions(+), 9 deletions(-)

 patch 8.1.0067: syntax highlighting not working when re-entering a
 buffer

Problem:    Syntax highlighting not working when re-entering a buffer.
Solution:   Do force executing autocommands when not called recursively.

(cherry picked from commit a5616b0136cea2104a475d143a1685d71e9b2d3d)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0177 defining function in sandbox is inconsiste.patch | (download)

src/ex_cmds.h | 2 1 + 1 - 0 !
src/userfunc.c | 29 22 + 7 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 25 insertions(+), 8 deletions(-)

 patch 8.1.0177: defining function in sandbox is inconsistent

Problem:    Defining function in sandbox is inconsistent, cannot use :function
            but can define a lambda.
Solution:   Allow defining a function in the sandbox, but also use the sandbox
            when executing it. (closes #3182)

(cherry picked from commit 93343725b5fa1cf580a24302455980faacae8ee2)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0189 function defined in sandbox not tested.patch | (download)

src/testdir/test_functions.vim | 16 16 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 18 insertions(+)

 patch 8.1.0189: function defined in sandbox not tested

Problem:    Function defined in sandbox not tested.
Solution:   Add a text.

(cherry picked from commit d90a144eda047816acffc7a8f297b43a7120710e)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0205 invalid memory access with invalid modelin.patch | (download)

src/Makefile | 1 1 + 0 - 0 !
src/option.c | 17 10 + 7 - 0 !
src/testdir/test_alot.vim | 1 1 + 0 - 0 !
src/testdir/test_modeline.vim | 8 8 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
5 files changed, 22 insertions(+), 7 deletions(-)

 patch 8.1.0205: invalid memory access with invalid modeline

Problem:    Invalid memory access with invalid modeline.
Solution:   Pass pointer limit. Add a test. (closes #3241)

(cherry picked from commit 9cf4b5005f12ce1d6692266140bdda05d0312d79)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0206 duplicate test function name.patch | (download)

src/testdir/test_glob2regpat.vim | 4 2 + 2 - 0 !
src/testdir/test_modeline.vim | 2 1 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 5 insertions(+), 3 deletions(-)

 patch 8.1.0206: duplicate test function name

Problem:    Duplicate test function name.
Solution:   Rename both functions.

(cherry picked from commit cd96eef3a869557bd3d2d4497861d87cb525db06)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0208 file left behind after running individual .patch | (download)

src/testdir/test_modeline.vim | 1 1 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 3 insertions(+)

 patch 8.1.0208: file left behind after running individual test

Problem:    File left behind after running individual test.
Solution:   Delete the file.

(cherry picked from commit 7624af02948de881eb5294fe5d266b948404d489)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0506 modeline test fails when run by root.patch | (download)

src/testdir/test_modeline.vim | 5 4 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 6 insertions(+), 1 deletion(-)

 patch 8.1.0506: modeline test fails when run by root

Problem:    Modeline test fails when run by root.
Solution:   Set 'modeline' for the test. (James McCoy, closes #3592)

(cherry picked from commit 9691f82f862ed18c2e3e48f9d2cd902bb947f803)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0538 evaluating a modeline might invoke using a.patch | (download)

src/buffer.c | 5 5 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 7 insertions(+)

 patch 8.1.0538: evaluating a modeline might invoke using a shell
 command

Problem:    Evaluating a modeline might invoke using a shell command. (Paul
            Huber)
Solution:   Set the sandbox flag when setting options from a modeline.

(cherry picked from commit 5958f95a40a4a44bd9e7f3b7ec6554a6ef3e42ca)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0539 cannot build without the sandbox.patch | (download)

runtime/doc/options.txt | 2 1 + 1 - 0 !
src/buffer.c | 4 2 + 2 - 0 !
src/option.c | 9 6 + 3 - 0 !
src/version.c | 2 2 + 0 - 0 !
4 files changed, 11 insertions(+), 6 deletions(-)

 patch 8.1.0539: cannot build without the sandbox

Problem:    Cannot build without the sandbox.
Solution:   Set the secure option instead of using the sandbox.  Also restrict
            the characters from 'spelllang' that are used for LANG.vim.
            (suggested by Yasuhiro Matsumoto)

(cherry picked from commit 82e8c92ebef5afcac0c0fdb706ff163f9b3366f7)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0540 may evaluate insecure value when appending.patch | (download)

src/option.c | 41 34 + 7 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 36 insertions(+), 7 deletions(-)

 patch 8.1.0540: may evaluate insecure value when appending to option

Problem:    May evaluate insecure value when appending to option.
Solution:   Set the secure flag when changing an option that was previously
            set insecurely.  Also allow numbers for the characters from
            'spelllang' that are used for LANG.vim.

(cherry picked from commit 247bb7e43b47eb8407a1111bed60b61aceda52ad)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0544 setting filetype in a modeline causes an e.patch | (download)

src/option.c | 84 62 + 22 - 0 !
src/testdir/test_modeline.vim | 76 76 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 140 insertions(+), 22 deletions(-)

 patch 8.1.0544: setting 'filetype' in a modeline causes an error

Problem:    Setting 'filetype' in a modeline causes an error (Hirohito
            Higashi).
Solution:   Don't add the P_INSECURE flag when setting 'filetype' from a
            modeline.  Also for 'syntax'.

(cherry picked from commit 916a818cea5ba05a5f2117407674461b8bee6832)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0546 modeline test with keymap fails.patch | (download)

src/testdir/test_modeline.vim | 3 3 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 5 insertions(+)

 patch 8.1.0546: modeline test with keymap fails

Problem:    Modeline test with keymap fails.
Solution:   Check that the keymap feature is available.

(cherry picked from commit 4ace6ab7e72151d78f1563b23b498ed20fa00211)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0547 modeline test with keymap still fails.patch | (download)

src/testdir/test_modeline.vim | 3 3 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 5 insertions(+)

 patch 8.1.0547: modeline test with keymap still fails

Problem:    Modeline test with keymap still fails.
Solution:   Check that the keymap feature is available for the failure assert.

(cherry picked from commit 3067a4dd0d768d1e4a47cf3c100f3e2b462717d7)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.0613 when executing an insecure function the se.patch | (download)

src/buffer.c | 3 2 + 1 - 0 !
src/option.c | 19 8 + 11 - 0 !
src/testdir/test_autocmd.vim | 23 23 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
4 files changed, 35 insertions(+), 12 deletions(-)

 patch 8.1.0613: when executing an insecure function the secure flag
 is stuck

Problem:    When executing an insecure function the secure flag is stuck.
            (Gabriel Barta)
Solution:   Restore "secure" instead of decrementing it. (closes #3705)

(cherry picked from commit 48f377a476e4a3312aa0e3535aba170484b59483)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.1046 the secure variable is used inconsistently.patch | (download)

src/buffer.c | 2 1 + 1 - 0 !
src/option.c | 9 4 + 5 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 7 insertions(+), 6 deletions(-)

 patch 8.1.1046: the "secure" variable is used inconsistently

Problem:    the "secure" variable is used inconsistently. (Justin M. Keyes)
Solution:   Set it to one instead of incrementing.

(cherry picked from commit 82b033eff82d3ed0da77fd5f5a1c023766acabba)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.1365 source command doesn t check for the sandb.patch | (download)

src/Makefile | 1 1 + 0 - 0 !
src/getchar.c | 6 6 + 0 - 0 !
src/testdir/test_source.vim | 10 10 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
4 files changed, 19 insertions(+)

 patch 8.1.1365: source command doesn't check for the sandbox

Problem:    Source command doesn't check for the sandbox. (Armin Razmjou)
Solution:   Check for the sandbox when sourcing a file.

(cherry picked from commit 53575521406739cf20bbe4e384d88e7dca11f040)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.1366 using expressions in a modeline is unsafe.patch | (download)

runtime/doc/options.txt | 69 59 + 10 - 0 !
src/option.c | 35 22 + 13 - 0 !
src/option.h | 1 1 + 0 - 0 !
src/testdir/test49.in | 2 1 + 1 - 0 !
src/testdir/test_modeline.vim | 93 85 + 8 - 0 !
src/version.c | 2 2 + 0 - 0 !
6 files changed, 170 insertions(+), 32 deletions(-)

 patch 8.1.1366: using expressions in a modeline is unsafe

Problem:    Using expressions in a modeline is unsafe.
Solution:   Disallow using expressions in a modeline, unless the
            'modelineexpr' option is set.  Update help, add more tests.

(cherry picked from commit 110289e78195b6d01e1e6ad26ad450de476d41c1)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.1367 can set modelineexpr in modeline.patch | (download)

src/option.c | 2 1 + 1 - 0 !
src/testdir/test_modeline.vim | 1 1 + 0 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 4 insertions(+), 1 deletion(-)

 patch 8.1.1367: can set 'modelineexpr' in modeline

Problem:    can set 'modelineexpr' in modeline.
Solution:   Add P_SECURE flag.

(cherry picked from commit 7e800c6047c8a9cc3e5cbc019a4dc91ec36616b1)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.1368 modeline test fails with python but withou.patch | (download)

src/testdir/test_modeline.vim | 2 1 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
2 files changed, 3 insertions(+), 1 deletion(-)

 patch 8.1.1368: modeline test fails with python but without
 pythonhome

Problem:    Modeline test fails with python but without pythonhome.
Solution:   Correct test argument.

(cherry picked from commit e09244ee3567d658c293fb1ae0d47a1a8be870ac)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.1382 error when editing test file.patch | (download)

src/testdir/test49.in | 2 1 + 1 - 0 !
src/testdir/test49.vim | 3 1 + 2 - 0 !
src/testdir/test_viml.vim | 1 0 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 patch 8.1.1382: error when editing test file

Problem:    Error when editing test file.
Solution:   Remove part of modeline.

(cherry picked from commit 3020a87cb121123abf1e9a1eca0eddac241fc481)

Signed-off-by: James McCoy <jamessan@debian.org>

upstream/patch 8.1.1401 misspelled mkspellmem as makespellmem.patch | (download)

runtime/doc/options.txt | 8 2 + 6 - 0 !
src/testdir/test_modeline.vim | 2 1 + 1 - 0 !
src/version.c | 2 2 + 0 - 0 !
3 files changed, 5 insertions(+), 7 deletions(-)

 patch 8.1.1401: misspelled mkspellmem as makespellmem

Problem:    Misspelled mkspellmem as makespellmem.
Solution:   Drop duplicate help entry, fix test. (Naruhiko Nishino, Ken
            Takata, closes #4437)

(cherry picked from commit 076073950c44ea0e35bc39d539dc7ab41bf9c7ec)

Signed-off-by: James McCoy <jamessan@debian.org>