diff options
author | Britney Fransen <brfransen@gmail.com> | 2014-12-18 19:59:44 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2014-12-18 19:59:44 (GMT) |
commit | ed1cfaa696c0e10f4b5155f93337fd94136039a1 (patch) | |
tree | 9f4f233a65aeba4ec8cc1fc44e3823a123fac3fa /abs/extra/cpio/cpio-2.11-testsuite-CVE-2014-9112.patch | |
parent | 448de762ee45450996baffc9f19ad74a9afe27a1 (diff) | |
download | linhes_pkgbuild-ed1cfaa696c0e10f4b5155f93337fd94136039a1.zip linhes_pkgbuild-ed1cfaa696c0e10f4b5155f93337fd94136039a1.tar.gz linhes_pkgbuild-ed1cfaa696c0e10f4b5155f93337fd94136039a1.tar.bz2 |
cpio: initial inclusion: dep of java7-openjdk
Diffstat (limited to 'abs/extra/cpio/cpio-2.11-testsuite-CVE-2014-9112.patch')
-rw-r--r-- | abs/extra/cpio/cpio-2.11-testsuite-CVE-2014-9112.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/abs/extra/cpio/cpio-2.11-testsuite-CVE-2014-9112.patch b/abs/extra/cpio/cpio-2.11-testsuite-CVE-2014-9112.patch new file mode 100644 index 0000000..b1b268a --- /dev/null +++ b/abs/extra/cpio/cpio-2.11-testsuite-CVE-2014-9112.patch @@ -0,0 +1,30 @@ +diff --git a/tests/symlink-bad-length.at b/tests/symlink-bad-length.at +index cbf4aa7..d8d250b 100644 +--- a/tests/symlink-bad-length.at ++++ b/tests/symlink-bad-length.at +@@ -37,13 +37,20 @@ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + + AT_CHECK([ + base64 -d ARCHIVE.base64 > ARCHIVE || AT_SKIP_TEST +-cpio -ntv < ARCHIVE +-test $? -eq 2 ++TZ=UTC cpio -ntv < ARCHIVE 2>stderr ++rc=$? ++cat stderr | grep -v \ ++ -e 'stored filename length is out of range' \ ++ -e 'premature end of file' \ ++ -e 'archive header has reverse byte-order' \ ++ -e 'memory exhausted' \ ++ >&2 ++echo >&2 STDERR ++test "$rc" -ne 0 + ], + [0], +-[-rw-rw-r-- 1 10029 10031 13 Nov 25 13:52 FILE +-],[cpio: LINK: stored filename length is out of range +-cpio: premature end of file ++[-rw-rw-r-- 1 10029 10031 13 Nov 25 11:52 FILE ++],[STDERR + ]) + + AT_CLEANUP |