Package: vim / 2:8.0.0197-4+deb9u1

Metadata

Package Version Patches format
vim 2:8.0.0197-4+deb9u1 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.