summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2016-10-28 10:56:30 -0700
committerPatrick McLean <chutzpah@gentoo.org>2016-10-28 10:56:30 -0700
commitf79804de6297450e101d97411e7f74f06d22d787 (patch)
tree25551a97bb71165713c0f455df2b6d173c8ac7df /app-arch/tar/files
parentnet-firewall/ipset: cleanup repoman inherit warning (diff)
downloadgentoo-f79804de6297450e101d97411e7f74f06d22d787.tar.gz
gentoo-f79804de6297450e101d97411e7f74f06d22d787.tar.bz2
gentoo-f79804de6297450e101d97411e7f74f06d22d787.zip
app-arch/tar: Revision bump to 1.29-r1 to add patch for CVE-2016-6321
Gentoo-Bug: 598334 Package-Manager: portage-2.3.2
Diffstat (limited to 'app-arch/tar/files')
-rw-r--r--app-arch/tar/files/tar-1.29-extract-pathname-bypass.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/app-arch/tar/files/tar-1.29-extract-pathname-bypass.patch b/app-arch/tar/files/tar-1.29-extract-pathname-bypass.patch
new file mode 100644
index 000000000000..6470fe082bda
--- /dev/null
+++ b/app-arch/tar/files/tar-1.29-extract-pathname-bypass.patch
@@ -0,0 +1,27 @@
+--- a/lib/paxnames.c 2016-04-06 00:04:47.314860045 +0300
++++ b/lib/paxnames.c 2016-04-06 02:08:44.962297881 +0300
+@@ -18,6 +18,7 @@
+ #include <system.h>
+ #include <hash.h>
+ #include <paxlib.h>
++#include <quotearg.h>
+
+
+ /* Hash tables of strings. */
+@@ -114,7 +115,15 @@
+ for (p = file_name + prefix_len; *p; )
+ {
+ if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
+- prefix_len = p + 2 - file_name;
++ {
++ static char const *const diagnostic[] =
++ {
++ N_("%s: Member name contains '..'"),
++ N_("%s: Hard link target contains '..'")
++ };
++ ERROR ((0, 0, _(diagnostic[link_target]),
++ quotearg_colon (file_name)));
++ }
+
+ do
+ {