xref: /PHP-8.2/ext/fileinfo/magicdata.patch (revision 1f5bea34)
1diff -ur Magdir/compress Magdir.orig/compress
2--- Magdir/compress	2023-07-01 16:33:17.323889842 +0200
3+++ Magdir.orig/compress	2021-03-31 01:47:28.000000000 +0200
4@@ -1,5 +1,5 @@
5 #------------------------------------------------------------------------------
6-# $File: compress,v 1.81 2021/04/19 17:01:45 christos Exp $
7+# $File: compress,v 1.80 2021/03/15 17:49:24 christos Exp $
8 # compress:  file(1) magic for pure-compression formats (no archives)
9 #
10 # compress, gzip, pack, compact, huf, squeeze, crunch, freeze, yabba, etc.
11@@ -265,13 +265,14 @@
12
13 # http://tukaani.org/xz/xz-file-format.txt
14 0	ustring		\xFD7zXZ\x00		XZ compressed data, checksum
15-!:strength * 2
16-!:mime	application/x-xz
17 >7	byte&0xf	0x0			NONE
18 >7	byte&0xf	0x1			CRC32
19 >7	byte&0xf	0x4			CRC64
20 >7	byte&0xf	0xa			SHA-256
21
22+!:strength * 2
23+!:mime	application/x-xz
24+
25 # https://github.com/ckolivas/lrzip/blob/master/doc/magic.header.txt
26 0	string		LRZI			LRZIP compressed data
27 >4	byte		x			- version %d
28diff -ur Magdir/fonts Magdir.orig/fonts
29--- Magdir/fonts	2023-07-01 16:32:41.731654699 +0200
30+++ Magdir.orig/fonts	2021-02-23 01:49:24.000000000 +0100
31@@ -384,13 +384,11 @@
32
33 # https://www.w3.org/TR/WOFF/
34 0	string		wOFF	Web Open Font Format
35-!:mime font/woff
36 >0	use		woff
37 >20	beshort		x	\b, version %d
38 >22	beshort		x	\b.%d
39 # https://www.w3.org/TR/WOFF2/
40 0	string		wOF2	Web Open Font Format (Version 2)
41-!:mime font/woff2
42 >0	use		woff
43 #>20	belong		x	\b, totalCompressedSize %d
44 >24	beshort		x	\b, version %d
45diff -ur Magdir/mail.news Magdir.orig/mail.news
46--- Magdir/mail.news	2023-07-01 16:32:41.731654699 +0200
47+++ Magdir.orig/mail.news	2021-03-31 01:47:28.000000000 +0200
48@@ -1,5 +1,5 @@
49 #------------------------------------------------------------------------------
50-# $File: mail.news,v 1.27 2021/04/05 16:36:14 christos Exp $
51+# $File: mail.news,v 1.26 2021/03/21 14:37:03 christos Exp $
52 # mail.news:  file(1) magic for mail and news
53 #
54 # Unfortunately, saved netnews also has From line added in some news software.
55@@ -81,4 +81,4 @@
56 # File format spec: https://wiki.dovecot.org/Design/Dcrypt/#File_format
57 # From: Stephen Gildea
58 0	string	CRYPTED\003\007		Dovecot encrypted message
59->9	byte	x			\b, dcrypt version %d
60+>9	byte	xu			\b, dcrypt version %d
61diff -ur Magdir/rpm Magdir.orig/rpm
62--- Magdir/rpm	2023-07-01 16:32:41.731654699 +0200
63+++ Magdir.orig/rpm	2021-02-23 01:49:24.000000000 +0100
64@@ -29,7 +29,6 @@
65 >>8	beshort		17		SuperH
66 >>8	beshort		18		Xtensa
67 >>8	beshort		255		noarch
68->>10	string		x		%s
69
70 #delta RPM    Daniel Novotny (dnovotny@redhat.com)
71 0	string		drpm		Delta RPM
72diff -ur Magdir/securitycerts Magdir.orig/securitycerts
73--- Magdir/securitycerts	2023-07-01 16:32:41.731654699 +0200
74+++ Magdir.orig/securitycerts	2021-02-23 01:49:24.000000000 +0100
75@@ -4,5 +4,3 @@
76 0	search/1		-----BEGIN\ CERTIFICATE------	RFC1421 Security Certificate text
77 0	search/1		-----BEGIN\ NEW\ CERTIFICATE	RFC1421 Security Certificate Signing Request text
78 0	belong	0xedfeedfe	Sun 'jks' Java Keystore File data
79-
80-0	string \0volume_key	volume_key escrow packet
81diff -ur Magdir/sgml Magdir.orig/sgml
82--- Magdir/sgml	2023-08-09 16:00:55.807784619 +0000
83+++ Magdir.orig/sgml	2021-02-23 00:49:24.000000000 +0000
84@@ -3,14 +3,13 @@
85 # $File: sgml,v 1.42 2020/12/12 20:01:47 christos Exp $
86 # Type:	SVG Vectorial Graphics
87 # From:	Noel Torres <tecnico@ejerciciosresueltos.com>
88-0	string/bt		\<?xml\ version=
89+0	string		\<?xml\ version=
90 >14	regex		['"\ \t]*[0-9.]+['"\ \t]*
91 >>19	search/4096	\<svg			SVG Scalable Vector Graphics image
92-!:strength +50
93 !:mime	image/svg+xml
94 >>19	search/4096	\<gnc-v2		GnuCash file
95 !:mime	application/x-gnucash
96-0	string/bt		\<svg			SVG Scalable Vector Graphics image
97+0	string		\<svg			SVG Scalable Vector Graphics image
98 !:mime	image/svg+xml
99
100 # Sitemap file
101