xref: /PHP-8.3/ext/fileinfo/magicdata.patch (revision bd24c562)
1diff -ur Magdir.orig/fonts Magdir/fonts
2--- Magdir.orig/fonts	2021-02-23 01:49:24.000000000 +0100
3+++ Magdir/fonts	2022-09-18 14:07:14.233023271 +0200
4@@ -384,11 +384,13 @@
5
6 # https://www.w3.org/TR/WOFF/
7 0	string		wOFF	Web Open Font Format
8+!:mime font/woff
9 >0	use		woff
10 >20	beshort		x	\b, version %d
11 >22	beshort		x	\b.%d
12 # https://www.w3.org/TR/WOFF2/
13 0	string		wOF2	Web Open Font Format (Version 2)
14+!:mime font/woff2
15 >0	use		woff
16 #>20	belong		x	\b, totalCompressedSize %d
17 >24	beshort		x	\b, version %d
18diff -ur Magdir.orig/mail.news Magdir/mail.news
19--- Magdir.orig/mail.news	2021-03-31 01:47:28.000000000 +0200
20+++ Magdir/mail.news	2021-04-05 19:41:55.168556972 +0200
21@@ -1,5 +1,5 @@
22 #------------------------------------------------------------------------------
23-# $File: mail.news,v 1.26 2021/03/21 14:37:03 christos Exp $
24+# $File: mail.news,v 1.27 2021/04/05 16:36:14 christos Exp $
25 # mail.news:  file(1) magic for mail and news
26 #
27 # Unfortunately, saved netnews also has From line added in some news software.
28@@ -81,4 +81,4 @@
29 # File format spec: https://wiki.dovecot.org/Design/Dcrypt/#File_format
30 # From: Stephen Gildea
31 0	string	CRYPTED\003\007		Dovecot encrypted message
32->9	byte	xu			\b, dcrypt version %d
33+>9	byte	x			\b, dcrypt version %d
34diff -ur Magdir.orig/rpm Magdir/rpm
35--- Magdir.orig/rpm	2021-02-23 01:49:24.000000000 +0100
36+++ Magdir/rpm	2021-04-05 19:40:55.080911893 +0200
37@@ -29,6 +29,7 @@
38 >>8	beshort		17		SuperH
39 >>8	beshort		18		Xtensa
40 >>8	beshort		255		noarch
41+>>10	string		x		%s
42
43 #delta RPM    Daniel Novotny (dnovotny@redhat.com)
44 0	string		drpm		Delta RPM
45diff -ur Magdir.orig/securitycerts Magdir/securitycerts
46--- Magdir.orig/securitycerts	2021-02-23 01:49:24.000000000 +0100
47+++ Magdir/securitycerts	2021-04-05 19:40:55.080911893 +0200
48@@ -4,3 +4,5 @@
49 0	search/1		-----BEGIN\ CERTIFICATE------	RFC1421 Security Certificate text
50 0	search/1		-----BEGIN\ NEW\ CERTIFICATE	RFC1421 Security Certificate Signing Request text
51 0	belong	0xedfeedfe	Sun 'jks' Java Keystore File data
52+
53+0	string \0volume_key	volume_key escrow packet
54diff --git a/magic/Magdir/sgml b/magic/Magdir/sgml
55--- Magdir.orig/sgml
56+++ Magdir/sgml
57@@ -1,16 +1,17 @@
58
59 #------------------------------------------------------------------------------
60-# $File: sgml,v 1.48 2023/01/18 16:10:21 christos Exp $
61+# $File: sgml,v 1.49 2023/08/05 14:34:47 christos Exp $
62 # Type:	SVG Vectorial Graphics
63 # From:	Noel Torres <tecnico@ejerciciosresueltos.com>
64-0	string		\<?xml\ version=
65+0	string/bt	\<?xml\ version=
66 >14	regex		['"\ \t]*[0-9.]+['"\ \t]*
67 >>19	search/4096	\<svg			SVG Scalable Vector Graphics image
68+!:strength +50
69 !:mime	image/svg+xml
70 !:ext   svg
71 >>19	search/4096	\<gnc-v2		GnuCash file
72 !:mime	application/x-gnucash
73-0	string		\<svg			SVG Scalable Vector Graphics image
74+0	string/bt	\<svg			SVG Scalable Vector Graphics image
75 !:mime	image/svg+xml
76 !:ext   svg
77