]> granicus.if.org Git - file/commitdiff
Add mozilla json compressed data files (Joerg Jenderek)
authorChristos Zoulas <christos@zoulas.com>
Mon, 26 Nov 2018 16:24:40 +0000 (16:24 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 26 Nov 2018 16:24:40 +0000 (16:24 +0000)
magic/Magdir/mozilla

index 2b1b1dcbfca8fbe381c97b48380446b900bb5478..2aa820618bc656eba8f3cb586fb9959953c492c4 100644 (file)
@@ -1,13 +1,28 @@
 
 #------------------------------------------------------------------------------
-# $File: mozilla,v 1.8 2018/01/17 12:08:36 christos Exp $
+# $File: mozilla,v 1.9 2018/11/26 16:24:40 christos Exp $
 # mozilla:  file(1) magic for Mozilla XUL fastload files
 # (XUL.mfasl and XPC.mfasl)
 # URL: http://www.mozilla.org/
 # From:        Josh Triplett <josh@freedesktop.org>
 
 0      string  XPCOM\nMozFASL\r\n\x1A          Mozilla XUL fastload data
+# Probably the next magic line contains misspelled "mozLz40\0"
 0      string  mozLz4a                         Mozilla lz4 compressed bookmark data
+# From: Joerg Jenderek
+# URL: https://lz4.github.io/lz4/
+# Reference: https://github.com/avih/dejsonlz4/archive/master.zip/
+# dejsonlz4-master\src\dejsonlz4.c 
+# Note: mostly JSON compressed with a non-standard LZ4 header
+# can be unpacked by dejsonlz4 but not lz4 programm.
+0      string  mozLz40\0                       Mozilla lz4 compressed data
+!:mime application/x-lz4+json
+# mozlz4 extension seems to be used for search/store, while jsonlz4 for bookmarks
+!:ext  jsonlz4/mozlz4
+# decomp_size
+>8     ulelong x                               \b, originally %u bytes
+# lz4 data
+#>12   ubequad x                               \b, lz4 data 0x%16.16llx
 
 # From: Joerg Jenderek
 # URL: https://en.wikipedia.org/wiki/Firefox_4