Skip to content

Commit ef1cbbd

Browse files
committed
Restore the common-type magic fast path without preempting subtype matchers
#172 fixed CR2 detection by folding the common-types rank into the priority sort, so common types were only probed first within their own priority band. That put the ~120 matchers Tika ranks above 50 ahead of every common type: detecting a JPEG went from 25 reads to 255, PNG from 26 to 256, PDF from 72 to 293, with wall time rising accordingly on every call. Move the common types back to the front of the table, but have each one carry along the higher-priority matchers for its own subtypes, so promoting a common type can never preempt a more specific verdict for the same content. image/x-canon-cr2 (priority 60, a subtype of image/tiff) still probes immediately ahead of image/tiff, the MP4 and HEIF family ahead of video/quicktime's broad ftyp match, and the Ogg codecs ahead of their containers. Parent links are now collected for every type during generation, not only glob-bearing ones, so the subtype walk sees the whole hierarchy. JPEG, PNG and GIF are back to 25, 26 and 28 reads at the same table positions as before #172; PDF takes 85, the cost of the carried matchers. A generator test pins the ordering rule and a read-budget test pins the fast path.
1 parent f71831d commit ef1cbbd

4 files changed

Lines changed: 145 additions & 47 deletions

File tree

‎lib/marcel/tables.rb‎

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,22 +2674,50 @@ module Marcel
26742674
# @private
26752675
# :nodoc:
26762676
MAGIC = [
2677-
['image/x-tga', [[1, b["\001\001\000\000"]], [1, b["\000\002\000\000"]], [1, b["\000\003\000\000"]]]],
2677+
['image/jpeg', [[0, b["\377\330\377"]]]],
2678+
['image/png', [[0, b["\211PNG\r\n\032\n"]]]],
2679+
['image/gif', [[0, b['GIF87a']], [0, b['GIF89a']]]],
2680+
['image/x-canon-cr2', [[0, b["MM\000*"], [[8, b['CR']]]], [0, b["II*\000"], [[8, b['CR']]]], [0, b["MM\000+"], [[8, b['CR']]]]]],
2681+
['image/tiff', [[0, b["MM\000*"]], [0, b["II*\000"]], [0, b["MM\000+"]]]],
2682+
['image/bmp', [[0, b['BM'], [[26, b["\001\000"], [[0, nil, [[0, nil, [[28, b["\000\000"]], [28, b["\001\000"]], [28, b["\004\000"]], [28, b["\b\000"]], [28, b["\020\000"]], [28, b["\030\000"]], [28, b[" \000"]]]], [30, b["\000\000\000\000"]]]]]]]]]],
2683+
['image/vnd.adobe.photoshop', [[0, b["8BPS\000\001"]], [0, b["8BPS\000\002"]]]],
2684+
['image/webp', [[0, b['RIFF'], [[8, b['WEBP']]]]]],
26782685
['image/svg+xml', [[0, b['<svg']]]],
2686+
['video/x-msvideo', [[0, b['RIFF'], [[8, b['AVI ']]]], [8, b['AVI ']]]],
2687+
['video/x-ms-wmv', [[0..8192, b["W\000i\000n\000d\000o\000w\000s\000 \000M\000e\000d\000i\000a\000 \000V\000i\000d\000e\000o\000"]], [0..8192, b["V\000C\000-\0001\000 \000A\000d\000v\000a\000n\000c\000e\000d\000 \000P\000r\000o\000f\000i\000l\000e\000"]], [0..8192, b["w\000m\000v\0002\000"]]]],
2688+
['video/mp4', [[4, b['ftypmp41']], [4, b['ftypmp42']]]],
2689+
['audio/mp4', [[4, b['ftypM4A ']], [4, b['ftypM4B ']], [4, b['ftypF4A ']], [4, b['ftypF4B ']]]],
2690+
['image/heic', [[4, b['ftypheic']], [4, b['ftypheix']]]],
2691+
['image/heic-sequence', [[4, b['ftyphevc']], [4, b['ftyphevx']]]],
2692+
['image/heif', [[4, b['ftypmif1']]]],
2693+
['image/heif-sequence', [[4, b['ftypmsf1']]]],
2694+
['image/x-canon-cr3', [[4, b['ftypcrx ']]]],
2695+
['video/x-m4v', [[4, b['ftypM4V ']], [4, b['ftypM4VH']], [4, b['ftypM4VP']]]],
2696+
['video/quicktime', [[4, b["moov\000"]], [4, b["mdat\000"]], [4, b["free\000"]], [4, b["skip\000"]], [4, b["pnot\000"]], [4, b['ftyp']], [0, b["\000\000\000\bwide"]]]],
2697+
['video/mpeg', [[0, b["\000\000\001\263"]], [0, b["\000\000\001\272"]]]],
2698+
['video/webm', [[0, b["\032E\337\243"], [[4..4096, b["B\202"], [[4..4096, b['webm'], [[4..4096, b['V_VP8']], [4..4096, b['V_VP9']], [4..4096, b['V_AV1']]]]]]]]]],
2699+
['video/x-matroska', [[0, b["\032E\337\243\223B\202\210matroska"]]]],
2700+
['video/x-flv', [[0, b['FLV']]]],
2701+
['audio/mpeg', [[0, b["\377\362"]], [0, b["\377\363"]], [0, b["\377\364"]], [0, b["\377\365"]], [0, b["\377\366"]], [0, b["\377\367"]], [0, b["\377\372"]], [0, b["\377\373"]], [0, b["\377\374"]], [0, b["\377\375"]], [0, b["\377\343"]], [0, b['ID3']]]],
2702+
['application/pdf', [[0, b['%PDF-']], [0, b["\357\273\277%PDF-"]]]],
2703+
['application/msword', [[2080, b['Microsoft Word 6.0 Document']], [2080, b['Documento Microsoft Word 6']], [2112, b['MSWordDoc']], [0, b["1\276\000\000"]], [0, b['PO^Q`']], [0, b["\3767\000#"]], [0, b["\333\245-\000\000\000"]], [0, b["\224\246."]], [0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["W\000o\000r\000d\000D\000o\000c\000u\000m\000e\000n\000t"]]]]]],
2704+
['application/vnd.openxmlformats-officedocument.wordprocessingml.document', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['word/']]]], [30, b['_rels/.rels'], [[0..4096, b['word/']]]]]]]],
2705+
['application/vnd.ms-powerpoint', [[0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["P\000o\000w\000e\000r\000P\000o\000i\000n\000t\000 D\000o\000c\000u\000m\000e\000n\000t"]]]]]],
2706+
['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['ppt/']]]], [30, b['_rels/.rels'], [[0..4096, b['ppt/']]]]]]]],
2707+
['application/x-tika-msworks-spreadsheet', [[0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["W\000k\000s\000S\000S\000W\000o\000r\000k\000B\000o\000o\000k"]]]]]],
2708+
['application/vnd.ms-excel', [[2080, b['Microsoft Excel 5.0 Worksheet']], [2080, b['Foglio di lavoro Microsoft Exce']], [2114, b['Biff5']], [2121, b['Biff5']], [0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["W\000o\000r\000k\000b\000o\000o\000k"]]]]]],
2709+
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['xl/']]]], [30, b['_rels/.rels'], [[0..4096, b['xl/']]]]]]]],
2710+
['image/x-tga', [[1, b["\001\001\000\000"]], [1, b["\000\002\000\000"]], [1, b["\000\003\000\000"]]]],
26792711
['application/x-endnote-refer', [[0..50, b['%A '], [[0..1000, b["\n%D "], [[0..1000, b["\n%T "]]]]]]]],
26802712
['application/x-tmx', [[0..256, b['<tmx']]]],
26812713
['image/svg+xml', [[0, b['<?xml'], [[21..512, b['<svg']]]]]],
2682-
['image/svg+xml', [[0, b['<!DOCTYPE svg'], [[25..1024, b['<svg']]]]]],
26832714
['application/mbox', [[0, b['From '], [[32..256, b["\nFrom: "]], [32..256, b["\nDate: "]], [32..256, b["\nSubject: "]], [32..256, b["\nDelivered-To: "]], [32..256, b["\nReceived: by "]], [32..256, b["\nReceived: via "]], [32..256, b["\nReceived: from "]], [32..256, b["\nMime-Version: "]], [32..256, b["\nX-"], [[32..8192, b["\nFrom: "]], [32..8192, b["\nDate: "]], [32..8192, b["\nSubject: "]], [32..8192, b["\nDelivered-To: "]], [32..8192, b["\nReceived: by "]], [32..8192, b["\nReceived: via "]], [32..8192, b["\nReceived: from "]], [32..8192, b["\nMime-Version: "]]]]]]]],
26842715
['application/x-bplist', [[0, b["bplist\000\000"]], [0, b["bplist\000\001"]], [0, b["bplist@\000"]], [0, b['bplist00']], [0, b['bplist01']], [0, b['bplist10']], [0, b['bplist15']], [0, b['bplist16']]]],
26852716
['application/x-dvd-ifo', [[0, b['DVDVIDEO-VTS']], [0, b['DVDVIDEO-VMG']]]],
26862717
['application/x-ebu-stl', [[3, b['STL'], [[8, b['.01']]]]]],
2718+
['image/svg+xml', [[0, b['<!DOCTYPE svg'], [[25..1024, b['<svg']]]]]],
26872719
['message/x-emlx', [[2..9, b["\nRelay-Version:"]], [2..9, b["\n#! rnews"]], [2..9, b["\nN#! rnews"]], [2..9, b["\nForward to"]], [2..9, b["\nPipe to"]], [2..9, b["\nReturn-Path:"]], [2..9, b["\nFrom:"]], [2..9, b["\nReceived:"]], [2..9, b["\nMessage-ID:"]], [2..9, b["\nDate:"]]]],
26882720
['image/svg+xml', [[0, b['<!--'], [[4..1024, b['<svg']]]]]],
2689-
['image/svg+xml', [[0, b[' <svg']], [0, b["\n<svg"]], [0, b["\r<svg"]], [0, b["\r\n<svg"]], [0, b["\t<svg"]]]],
2690-
['video/x-ms-wmv', [[0..8192, b["W\000i\000n\000d\000o\000w\000s\000 \000M\000e\000d\000i\000a\000 \000V\000i\000d\000e\000o\000"]], [0..8192, b["V\000C\000-\0001\000 \000A\000d\000v\000a\000n\000c\000e\000d\000 \000P\000r\000o\000f\000i\000l\000e\000"]], [0..8192, b["w\000m\000v\0002\000"]]]],
2691-
['video/mp4', [[4, b['ftypmp41']], [4, b['ftypmp42']]]],
2692-
['audio/mp4', [[4, b['ftypM4A ']], [4, b['ftypM4B ']], [4, b['ftypF4A ']], [4, b['ftypF4B ']]]],
26932721
['application/cbor', [[0, b["\331\331\367"]]]],
26942722
['application/coreldraw', [[0, b['RIFF'], [[8, b['CDR']], [8, b['cdr']], [8, b['DES']], [8, b['des']]]]]],
26952723
['application/vnd.etsi.asic-e+zip', [[0, b["PK\003\004"], [[30, b['mimetypeapplication/vnd.etsi.asic-e+zip']]]]]],
@@ -2718,7 +2746,6 @@ module Marcel
27182746
['application/x-esri-spatially-enabled-db', [[0, b["SQLite format 3\000"], [[68, b['Esri']]]]]],
27192747
['application/x-font-type1', [[0, b["\200\001"], [[4, b["\000\000%!PS-AdobeFont"]]]], [0, b['%!PS-AdobeFont-1.0']]]],
27202748
['application/x-fossil-checkout', [[0, b["SQLite format 3\000"], [[68, b["\017\005Q\022"]]]]]],
2721-
['application/x-fossil-checkout', [[0, b["SQLite format 3\000"], [[68, b["\017\005Q\022"]]]]]],
27222749
['application/x-fossil-global-conf', [[0, b["SQLite format 3\000"], [[68, b["\017\005Q\023"]]]]]],
27232750
['application/x-fossil-repository', [[0, b["SQLite format 3\000"], [[68, b["\017\005Q\021"]]]]]],
27242751
['application/x-geopackage', [[0, b["SQLite format 3\000"], [[68, b['GPKG']]]]]],
@@ -2747,20 +2774,14 @@ module Marcel
27472774
['application/x-stata-dta;version=14', [[0, b['<stata_dta><header><release>118</release>']]]],
27482775
['application/x-stata-dta;version=8', [[0, b['<stata_dta><header><release>113</release>']]]],
27492776
['application/x-texnicard', [[0, b["SQLite format 3\000"], [[68, b["j\003WD"]]]]]],
2750-
['application/x-tika-msworks-spreadsheet', [[0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["W\000k\000s\000S\000S\000W\000o\000r\000k\000B\000o\000o\000k"]]]]]],
27512777
['audio/opus', [[0, b['OggS'], [[29, b['pusHead']]]]]],
27522778
['audio/speex', [[0, b['OggS'], [[29, b['peex ']]]]]],
27532779
['audio/vorbis', [[0, b['OggS'], [[29, b['vorbis']]]]]],
27542780
['audio/x-caf', [[0, b["caff\000\000"]], [0, b["caff\000\001"]], [0, b["caff\000\002"]], [0, b["caff@\000"]], [0, b["caff\200\000"]]]],
27552781
['audio/x-oggflac', [[0, b['OggS'], [[29, b['LAC']]]]]],
27562782
['audio/x-oggpcm', [[0, b['OggS'], [[29, b['CM ']]]]]],
27572783
['image/avif', [[4, b['ftypavif']]]],
2758-
['image/heic', [[4, b['ftypheic']], [4, b['ftypheix']]]],
2759-
['image/heic-sequence', [[4, b['ftyphevc']], [4, b['ftyphevx']]]],
2760-
['image/heif', [[4, b['ftypmif1']]]],
2761-
['image/heif-sequence', [[4, b['ftypmsf1']]]],
2762-
['image/x-canon-cr2', [[0, b["MM\000*"], [[8, b['CR']]]], [0, b["II*\000"], [[8, b['CR']]]], [0, b["MM\000+"], [[8, b['CR']]]]]],
2763-
['image/x-canon-cr3', [[4, b['ftypcrx ']]]],
2784+
['image/svg+xml', [[0, b[' <svg']], [0, b["\n<svg"]], [0, b["\r<svg"]], [0, b["\r\n<svg"]], [0, b["\t<svg"]]]],
27642785
['message/news', [[0, b['Path:']], [0, b['Xref:']]]],
27652786
['model/e57', [[0, b['ASTM-E57']]]],
27662787
['model/vnd.dwf;version=2', [[0, b['(DWF V00.22)']]]],
@@ -2773,7 +2794,6 @@ module Marcel
27732794
['video/daala', [[0, b['OggS'], [[29, b['daala']]]]]],
27742795
['video/theora', [[0, b['OggS'], [[29, b['theora']]]]]],
27752796
['video/x-dirac', [[0, b['OggS'], [[29, b['BCD']]]]]],
2776-
['video/x-m4v', [[4, b['ftypM4V ']], [4, b['ftypM4VH']], [4, b['ftypM4VP']]]],
27772797
['video/x-oggrgb', [[0, b['OggS'], [[29, b['RGB']]]]]],
27782798
['video/x-ogguvs', [[0, b['OggS'], [[29, b['VS ']]]]]],
27792799
['video/x-oggyuv', [[0, b['OggS'], [[29, b['YUV']]]]]],
@@ -2791,29 +2811,6 @@ module Marcel
27912811
['application/x-mach-o-preload', [[0, b["\376\355\372\316"], [[12, b["\000\000\000\005"]]]], [0, b["\316\372\355\376"], [[12, b["\005\000\000\000"]]]], [0, b["\376\355\372\317"], [[12, b["\000\000\000\005"]]]], [0, b["\317\372\355\376"], [[12, b["\005\000\000\000"]]]]]],
27922812
['application/x-msdownload;format=pe', [[0, b['MZ'], [[128, b["PE\000\000"]], [176, b["PE\000\000"]], [208, b["PE\000\000"]], [240, b["PE\000\000"]]]]]],
27932813
['text/x-robots', [[0, nil, [[0, b['user-agent:']], [0, b['allow:']], [0, b['disallow:']], [0, b['sitemap:']], [0..1000, b["\nuser-agent:"]], [0..1000, b["\nallow:"]], [0..1000, b["\ndisallow:"]], [0..1000, b["\nsitemap:"]]]]]],
2794-
['image/jpeg', [[0, b["\377\330\377"]]]],
2795-
['image/png', [[0, b["\211PNG\r\n\032\n"]]]],
2796-
['image/gif', [[0, b['GIF87a']], [0, b['GIF89a']]]],
2797-
['image/tiff', [[0, b["MM\000*"]], [0, b["II*\000"]], [0, b["MM\000+"]]]],
2798-
['image/bmp', [[0, b['BM'], [[26, b["\001\000"], [[0, nil, [[0, nil, [[28, b["\000\000"]], [28, b["\001\000"]], [28, b["\004\000"]], [28, b["\b\000"]], [28, b["\020\000"]], [28, b["\030\000"]], [28, b[" \000"]]]], [30, b["\000\000\000\000"]]]]]]]]]],
2799-
['image/vnd.adobe.photoshop', [[0, b["8BPS\000\001"]], [0, b["8BPS\000\002"]]]],
2800-
['image/webp', [[0, b['RIFF'], [[8, b['WEBP']]]]]],
2801-
['image/svg+xml', [[0, b['<svg'], [[5..256, b['http://www.w3.org/2000/svg']]]]]],
2802-
['video/x-msvideo', [[0, b['RIFF'], [[8, b['AVI ']]]], [8, b['AVI ']]]],
2803-
['video/quicktime', [[4, b["moov\000"]], [4, b["mdat\000"]], [4, b["free\000"]], [4, b["skip\000"]], [4, b["pnot\000"]], [4, b['ftyp']], [0, b["\000\000\000\bwide"]]]],
2804-
['video/mpeg', [[0, b["\000\000\001\263"]], [0, b["\000\000\001\272"]]]],
2805-
['video/webm', [[0, b["\032E\337\243"], [[4..4096, b["B\202"], [[4..4096, b['webm'], [[4..4096, b['V_VP8']], [4..4096, b['V_VP9']], [4..4096, b['V_AV1']]]]]]]]]],
2806-
['video/x-matroska', [[0, b["\032E\337\243\223B\202\210matroska"]]]],
2807-
['video/x-flv', [[0, b['FLV']]]],
2808-
['audio/mpeg', [[0, b["\377\362"]], [0, b["\377\363"]], [0, b["\377\364"]], [0, b["\377\365"]], [0, b["\377\366"]], [0, b["\377\367"]], [0, b["\377\372"]], [0, b["\377\373"]], [0, b["\377\374"]], [0, b["\377\375"]], [0, b["\377\343"]], [0, b['ID3']]]],
2809-
['application/pdf', [[0, b['%PDF-']], [0, b["\357\273\277%PDF-"]]]],
2810-
['application/msword', [[2080, b['Microsoft Word 6.0 Document']], [2080, b['Documento Microsoft Word 6']], [2112, b['MSWordDoc']], [0, b["1\276\000\000"]], [0, b['PO^Q`']], [0, b["\3767\000#"]], [0, b["\333\245-\000\000\000"]], [0, b["\224\246."]], [0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["W\000o\000r\000d\000D\000o\000c\000u\000m\000e\000n\000t"]]]]]],
2811-
['application/msword', [[0..8, b["\320\317\021\340\241\261\032\341"], [[546, b['jbjb']], [546, b['bjbj']]]]]],
2812-
['application/vnd.openxmlformats-officedocument.wordprocessingml.document', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['word/']]]], [30, b['_rels/.rels'], [[0..4096, b['word/']]]]]]]],
2813-
['application/vnd.ms-powerpoint', [[0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["P\000o\000w\000e\000r\000P\000o\000i\000n\000t\000 D\000o\000c\000u\000m\000e\000n\000t"]]]]]],
2814-
['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['ppt/']]]], [30, b['_rels/.rels'], [[0..4096, b['ppt/']]]]]]]],
2815-
['application/vnd.ms-excel', [[2080, b['Microsoft Excel 5.0 Worksheet']], [2080, b['Foglio di lavoro Microsoft Exce']], [2114, b['Biff5']], [2121, b['Biff5']], [0..8, b["\320\317\021\340\241\261\032\341"], [[1152..4096, b["W\000o\000r\000k\000b\000o\000o\000k"]]]]]],
2816-
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', [[0, b["PK\003\004"], [[30..65536, b['[Content_Types].xml'], [[0..4096, b['xl/']]]], [30, b['_rels/.rels'], [[0..4096, b['xl/']]]]]]]],
28172814
['application/applefile', [[0, b["\000\005\026\000"]]]],
28182815
['application/dash+xml', [[0, b['<MPD']]]],
28192816
['application/dicom', [[128, b['DICM']]]],
@@ -2823,6 +2820,7 @@ module Marcel
28232820
['application/java-vm', [[0, b["\312\376\272\276"]]]],
28242821
['application/mac-binhex40', [[11, b['must be converted with BinHex']]]],
28252822
['application/mathematica', [[0, b['(**']], [0, b['(* ']]]],
2823+
['application/msword', [[0..8, b["\320\317\021\340\241\261\032\341"], [[546, b['jbjb']], [546, b['bjbj']]]]]],
28262824
['application/msword2', [[0, b["\233\245"]], [0, b["\333\245"]]]],
28272825
['application/msword5', [[0, b["\3767"]]]],
28282826
['application/octet-stream', [[10, b['# This is a shell archive']], [0, b["\037\036"]], [0, b["\037\037"]], [0, b["\377\037"]], [0, b["\377\037"]], [0, b["\005\313"]]]],
@@ -3015,6 +3013,7 @@ module Marcel
30153013
['image/jpx', [[0, b["\000\000\000\fjP \r\n\207\n"], [[20, b['jpx ']]]]]],
30163014
['image/jxl', [[0, b["\377\n"]], [0, b["\000\000\000\fJXL \r\n\207\n"]]]],
30173015
['image/nitf', [[0, b['NITF01.10']], [0, b['NITF02.000']], [0, b['NITF02.100']]]],
3016+
['image/svg+xml', [[0, b['<svg'], [[5..256, b['http://www.w3.org/2000/svg']]]]]],
30183017
['image/vnd.djvu', [[0, b['AT&TFORM']]]],
30193018
['image/vnd.dwg', [[0, b['MC0.0']], [0, b['AC1.2']], [0, b['AC1.40']], [0, b['AC1.50']], [0, b['AC2.10']], [0, b['AC2.21']], [0, b['AC2.22']]]],
30203019
['image/vnd.dxb', [[0, b["AutoCAD DXB 1.0\r\n0x1A00"]]]],
@@ -3063,9 +3062,9 @@ module Marcel
30633062
['video/x-mng', [[0, b["\212MNG"]]]],
30643063
['video/x-ms-asf', [[0, b["0&\262u"]]]],
30653064
['video/x-sgi-movie', [[0, b["MOVI\000"]], [0, b["MOVI\001"]], [0, b["MOVI\002"]], [0, b["MOVI\376"]], [0, b["MOVI\377"]]]],
3066-
['image/bmp', [[0, b['BM'], [[26, b["\001\000"], [[28, b["\000\000"]], [28, b["\001\000"]], [28, b["\004\000"]], [28, b["\b\000"]], [28, b["\020\000"]], [28, b["\030\000"]], [28, b[" \000"]]]]]]]],
30673065
['application/gzip', [[0, b["\037\213"]], [0, b["\037\213"]]]],
30683066
['application/zlib', [[0, b["x\001"]], [0, b['x^']], [0, b["x\234"]], [0, b["x\332"]]]],
3067+
['image/bmp', [[0, b['BM'], [[26, b["\001\000"], [[28, b["\000\000"]], [28, b["\001\000"]], [28, b["\004\000"]], [28, b["\b\000"]], [28, b["\020\000"]], [28, b["\030\000"]], [28, b[" \000"]]]]]]]],
30693068
['message/rfc822', [[0, nil, [[0, nil, [[0, b['Content-ID:']], [0, b['Content-Location:']], [0, b['Content-Transfer-Encoding:']], [0, b['Content-Type:']], [0, b['Date:']], [0, b['Delivered-To:']], [0, b['From:']], [0, b['Message-ID:']], [0, b['MIME-Version:']], [0, b['Received:']], [0, b['Relay-Version:']], [0, b['Return-Path:']], [0, b['Sent:']], [0, b['Status:']], [0, b['Subject:']], [0, b['To:']], [0, b['User-Agent:']], [0, b['X-Mailer:']], [0, b['X-Originating-IP:']], [0, b["\357\273\277"], [[3, b['Content-ID:']], [3, b['Content-Location:']], [3, b['Content-Transfer-Encoding:']], [3, b['Content-Type:']], [3, b['Date:']], [3, b['Delivered-To:']], [3, b['From:']], [3, b['Message-ID:']], [3, b['MIME-Version:']], [3, b['Received:']], [3, b['Relay-Version:']], [3, b['Return-Path:']], [3, b['Sent:']], [3, b['Status:']], [3, b['Subject:']], [3, b['To:']], [3, b['User-Agent:']], [3, b['X-Mailer:']], [3, b['X-Originating-IP:']]]]]], [0, nil, [[0..1024, b["\nContent-ID:"]], [0..1024, b["\nContent-Location:"]], [0..1024, b["\nContent-Transfer-Encoding:"]], [0..1024, b["\nContent-Type:"]], [0..1024, b["\nDate:"]], [0..1024, b["\nDelivered-To:"]], [0..1024, b["\nFrom:"]], [0..1024, b["\nMIME-Version:"]], [0..1024, b["\nReceived:"]], [0..1024, b["\nRelay-Version:"]], [0..1024, b["\nReturn-Path:"]], [0..1024, b["\nSent:"]], [0..1024, b["\nStatus:"]], [0..1024, b["\nSubject:"]], [0..1024, b["\nTo:"]], [0..1024, b["\nUser-Agent:"]], [0..1024, b["\nX-Mailer:"]], [0..1024, b["\nX-Originating-IP:"]], [0..1024, b["\nDKIM-"]], [0..1024, b["\nARC-"]]]]]]]],
30703069
['application/pdf', [[0..128, b['%%'], [[1..512, b['%PDF-1.']]]], [0..128, b['%%'], [[1..512, b['%PDF-2.']]]]]],
30713070
['application/vnd.wordperfect', [[0, b["\377WPC"]]]],

0 commit comments

Comments
 (0)