Browse Source

Disable detection of VAX COFF executables. Closes: #697846

Christoph Biedl 8 years ago
parent
commit
e5edc64de6

debian/patches/cherry-pick.FILE5_25-1-g7e60111.PR-479-check-the-format-length-modifiers.patch → debian/patches/cherry-pick.FILE5_25-1-g7e60111.pr-479-check-the-format-length-modifiers.patch


debian/patches/cherry-pick.FILE5_25-2-gde23336.PR-479-Protect-against-0-divide-and-offset-out-of-bounds-reads.patch → debian/patches/cherry-pick.FILE5_25-2-gde23336.pr-479-protect-against-0-divide-and-offset-out-of-bounds-reads.patch


+ 28 - 0
debian/patches/local.disable-detection-of-vax-coff-executables.patch

@@ -0,0 +1,28 @@
+Subject: Disable detection of VAX COFF executables
+Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
+Date: Wed, 16 Sep 2015 23:59:58 +0200
+Bug-Debian: https://bugs.debian.org/697846
+
+    zlib compress data very often begins with \x78\x01 (deflate, 32k
+    window size). This clashes with VAX COFF where the latter has a
+    bigger strength. Additional havoc is created by the fact the
+    latter is considered an executable.
+
+    Disable "VAX COFF executable" for the time being. It's the lesser
+    evil.
+
+--- a/magic/Magdir/vax
++++ b/magic/Magdir/vax
+@@ -19,9 +19,9 @@
+ # The `versions' were commented out, but have been un-commented out.
+ # (Was the problem just one of endianness?)
+ #
+-0	leshort		0570		VAX COFF executable
+->12	lelong		>0		not stripped
+->22	leshort		>0		- version %d
++#0	leshort		0570		VAX COFF executable
++#>12	lelong		>0		not stripped
++#>22	leshort		>0		- version %d
+ 0	leshort		0575		VAX COFF pure executable
+ >12	lelong		>0		not stripped
+ >22	leshort		>0		- version %d

+ 1 - 0
debian/patches/series

@@ -12,3 +12,4 @@ local.support-local-definitions-in-etc-magic.patch
 local.don-t-include-libs-in-build.patch
 local.mention-posixly-correct-dependent-behaviour-in-usage-message.patch
 local.report-gz-as-application-gzip.patch
+local.disable-detection-of-vax-coff-executables.patch