20 Commits

Author SHA1 Message Date
87757c6b0a patch 9.1.1552: [security]: path traversal issue in tar.vim
Problem:  [security]: path traversal issue in tar.vim
          (@ax)
Solution: warn the user for such things, drop leading /, don't
          forcefully overwrite files when writing temporary files,
          refactor autoload/tar.vim

tar.vim: drop leading / in path names

A tar archive containing files with leading `/` may cause confusions as
to where the content is extracted.  Let's make sure we drop the leading
`/` and use a relative path instead.

Also while at it, had to refactor it quite a bit and increase the
minimum supported Vim version to v9. Also add a test for some basic tar
functionality

closes: #17733
2025-07-15 21:58:08 +02:00
56957ed410 runtime(misc): add support for bzip3 to tar, vimball and gzip plugins
fixes: #16751
closes: #16755

Signed-off-by: Jim Zhou <jimzhouzzy@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2025-02-28 18:06:14 +01:00
b69cd52447 runtime(misc): Add support for lz4 to tar & gzip plugin
while at it, clean up the tar plugin a bit and sort the patterns for the
tar and gzip plugin

References:
- https://github.com/lz4/lz4
- https://lz4.org/

closes: #16591

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Corpulent Robin <177767857+corpulentrobin@users.noreply.github.com>
2025-02-06 21:10:49 +01:00
3a5b3df776 runtime(tar): fix a few problems with the tar plugin
From: #138331:
  - Updating .tar.zst files was broken. Fixes #12639.
  - Extracting files from .tar.zst / .tzs files was also broken and
    works now.
From: #12637:
  - Fixes variable assignment and typo
From: #8109:
  - Rename .tzs to the more standard .tzst

fixes: #12639
fixes: #8105
closes: #8109
closes: #12637
closes: #13831

Co-authored-by: Martin Rys <martin@rys.pw>
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Co-authored-by: Carlo Teubner <carlo@cteubner.net>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-08 20:02:14 +01:00
23515b4ef7 Update runtime files 2020-11-29 14:36:24 +01:00
2963456ff2 Update runtime files. 2020-01-09 21:46:04 +01:00
214641f77d Runtime file updates. 2017-03-05 17:04:09 +01:00
ff0341946e Updated runtime files. 2013-04-24 18:51:19 +02:00
6be7f8733f Update runtime files. 2012-01-20 21:08:56 +01:00
251e191271 Updated runtime files. 2011-06-19 05:09:16 +02:00
7fc0c065f0 Runtime file updates. Fix tar plugin window split. 2010-08-10 21:43:35 +02:00
477db060eb More runtime file updates. 2010-07-28 18:17:41 +02:00
5c73622a90 Update runtime files. 2010-01-06 20:54:52 +01:00
ed39e1d53c updated for version 7.2-000 2008-08-09 17:55:22 +00:00
e37d50a5de updated for version 7.2c-000 2008-08-06 17:06:04 +00:00
c236c16d08 updated for version 7.2b-000 2008-07-13 17:41:49 +00:00
8c8de83932 updated for version 7.2a 2008-06-24 22:58:06 +00:00
83e138c606 updated for version 7.1a 2007-05-05 18:27:07 +00:00
a5792f5890 updated for version 7.0158 2005-11-23 21:25:05 +00:00
58071af793 updated for version 7.0147 2005-09-14 21:41:18 +00:00