head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC4:1.1.1.2 netbsd-11-0-RC3:1.1.1.2 netbsd-11-0-RC2:1.1.1.2 netbsd-11-0-RC1:1.1.1.2 perseant-exfatfs-base-20250801:1.1.1.2 netbsd-11:1.1.1.2.0.10 netbsd-11-base:1.1.1.2 netbsd-10-1-RELEASE:1.1.1.2 perseant-exfatfs-base-20240630:1.1.1.2 perseant-exfatfs:1.1.1.2.0.8 perseant-exfatfs-base:1.1.1.2 netbsd-9-4-RELEASE:1.1.1.1 netbsd-10-0-RELEASE:1.1.1.2 netbsd-10-0-RC6:1.1.1.2 netbsd-10-0-RC5:1.1.1.2 netbsd-10-0-RC4:1.1.1.2 netbsd-10-0-RC3:1.1.1.2 netbsd-10-0-RC2:1.1.1.2 netbsd-10-0-RC1:1.1.1.2 FILE5_45:1.1.1.2 netbsd-10:1.1.1.2.0.6 netbsd-10-base:1.1.1.2 FILE5_43:1.1.1.2 netbsd-9-3-RELEASE:1.1.1.1 cjep_sun2x-base1:1.1.1.2 cjep_sun2x:1.1.1.2.0.4 cjep_sun2x-base:1.1.1.2 cjep_staticlib_x-base1:1.1.1.2 netbsd-9-2-RELEASE:1.1.1.1 cjep_staticlib_x:1.1.1.2.0.2 cjep_staticlib_x-base:1.1.1.2 FILE5_40:1.1.1.2 netbsd-9-1-RELEASE:1.1.1.1 FILE5_39:1.1.1.2 phil-wifi-20200421:1.1.1.1 phil-wifi-20200411:1.1.1.1 is-mlppp:1.1.1.1.0.8 is-mlppp-base:1.1.1.1 phil-wifi-20200406:1.1.1.1 netbsd-9-0-RELEASE:1.1.1.1 netbsd-9-0-RC2:1.1.1.1 FILE5_38:1.1.1.1 netbsd-9-0-RC1:1.1.1.1 phil-wifi-20191119:1.1.1.1 netbsd-9:1.1.1.1.0.6 netbsd-9-base:1.1.1.1 phil-wifi:1.1.1.1.0.4 phil-wifi-20190609:1.1.1.1 FILE5_37:1.1.1.1 pgoyette-compat-merge-20190127:1.1.1.1.2.2 pgoyette-compat-20190127:1.1.1.1 pgoyette-compat-20190118:1.1.1.1 pgoyette-compat-1226:1.1.1.1 pgoyette-compat-1126:1.1.1.1 pgoyette-compat:1.1.1.1.0.2 pgoyette-compat-1020:1.1.1.1 FILE5_35:1.1.1.1 CHRISTOS:1.1.1; locks; strict; comment @# @; 1.1 date 2018.10.18.23.54.09; author christos; state Exp; branches 1.1.1.1; next ; commitid e8WctwerBeEm4vWA; 1.1.1.1 date 2018.10.18.23.54.09; author christos; state Exp; branches 1.1.1.1.2.1 1.1.1.1.4.1; next 1.1.1.2; commitid e8WctwerBeEm4vWA; 1.1.1.2 date 2020.06.15.00.18.48; author christos; state Exp; branches; next ; commitid HMbuXSjPojU5LfcC; 1.1.1.1.2.1 date 2018.10.18.23.54.09; author pgoyette; state dead; branches; next 1.1.1.1.2.2; commitid mTSoqZEZ4arHnFWA; 1.1.1.1.2.2 date 2018.10.20.06.58.20; author pgoyette; state Exp; branches; next ; commitid mTSoqZEZ4arHnFWA; 1.1.1.1.4.1 date 2018.10.18.23.54.09; author christos; state dead; branches; next 1.1.1.1.4.2; commitid jtc8rnCzWiEEHGqB; 1.1.1.1.4.2 date 2019.06.10.21.44.46; author christos; state Exp; branches; next ; commitid jtc8rnCzWiEEHGqB; desc @@ 1.1 log @Initial revision @ text @ #------------------------------------------------------------------------------ # $File: kicad,v 1.1 2018/10/01 18:39:21 christos Exp $ # kicad: file(1) magic for KiCad files # # See # # http://kicad-pcb.org # # KiCad Schematic Document 0 string EESchema >8 byte 0x20 >>9 string Schematic >>>18 byte 0x20 KiCad Schematic Document !:ext sch/bak >>>>24 string Version >>>>>31 byte 0x20 >>>>>>32 string x (Version %s) # KiCad Symbol Library 0 string EESchema-LIBRARY >16 byte 0x20 KiCad Symbol Library !:ext lib >>17 string Version >>>24 byte 0x20 >>>>25 string x (Version %s) # KiCad Symbol Library Documentation 0 string EESchema-DOCLIB >15 byte 0x20 KiCad Symbol Library Documentation !:ext dcm >>17 string Version >>>24 byte 0x20 >>>>25 string x (Version %s) # KiCad Board Layout 0 string (kicad_pcb >10 byte 0x20 KiCad Board Layout !:ext kicad_pcb/kicad_pcb-bak >>11 string (version >>>19 byte 0x20 >>>>20 byte x (Version %c) # KiCad Footprint 0 string (module >7 byte 0x20 KiCad Footprint !:ext kicad_mod # KiCad Footprint (Legacy) 0 string PCBNEW-LibModule-V1 KiCad Footprint (Legacy) !:ext mod # KiCad Netlist 0 string (export >7 byte 0x20 KiCad Netlist !:ext net # KiCad Symbol Library Table 0 string (sym_lib_table >14 byte 0xA KiCad Symbol Library Table >14 byte 0xD KiCad Symbol Library Table >14 byte 0x20 KiCad Symbol Library Table # KiCad Footprint Library Table 0 string (fp_lib_table >13 byte 0xA KiCad Footprint Library Table >13 byte 0xD KiCad Footprint Library Table >13 byte 0x20 KiCad Footprint Library Table @ 1.1.1.1 log @2018-10-18 19:32 Christos Zoulas * release 5.35 2018-09-10 20:38 Christos Zoulas * Add FreeBSD ELF core file support (John Baldwin) 2018-08-20 18:40 Christos Zoulas * PR/30: Allow all parameter values to be set (don't treat 0 specially) * handle default annotations on the softmagic match instead at the end. 2018-07-25 10:17 Christos Zoulas * PR/23: Recognize JSON files 2018-07-25 10:17 Christos Zoulas * PR/18: file --mime-encoding should not print mime-type 2018-07-25 8:50 Christos Zoulas * release 5.34 2018-06-22 16:38 Christos Zoulas * Add Quad indirect offsets 2018-05-24 14:10 Christos Zoulas * Enable parsing of ELF dynamic sections to handle PIE better @ text @@ 1.1.1.2 log @Import 5.39: * Remove unused subtype_mime (Steve Grubb) * Remove unused check in okstat (Steve Grubb) * Fix mime-type in elf binaries by making sure $x is set * Fix indirect negative offsets broken by OFFNEGATIVE * Fix GUID equality check * PR/165: Handle empty array and strings in JSON * PR/162: Add --exclude-quiet * Fix memory leak in ascmagic (Steve Grubb) * Fix string comparison length with ignore whitespace * Fix mingwin 64 compilation * PR/159: whitelist getpid needed for file_pipe2file() * Indicate negative offsets with a flag OFFNEGATIVE so that -0 works. * Introduce "offset" magic type that can be used to detect the file size, and bail on short files. * document DER better in the magic man page. * fix memory leaks (SonarQube) * rewrite confusing loops (SonarQube) * fix bogus test (SonarQube) * pass a sized buffer to file_fmttime() (SonarQube) * Don't allow * in printf formats, or the code itself (Christoph Biedl) * Introduce a printf output size checker to avoid DoS attacks * Avoid memory leak on error (oss-fuzz) * Check length of string on DER before derefercing and add new types * Add missing DER string (oss-fuzz) * Add missing DER types, and debugging * PR/140: Avoid abort with hand-crafted magic file (gockelhahn) * PR/139: Avoid DoS in printf with hand-crafted magic file (gockelhahn) * PR/138: Avoid crash with hand-crafted magic file (gockelhahn) * PR/136: Fix static build by adding a libmagic.pc (Fabrice Fontaine) * add guid support native support via the "guid" type. @ text @d3 1 a3 1 # $File: kicad,v 1.2 2020/05/06 14:03:28 christos Exp $ a11 8 0 string (kicad_sch >10 byte 0x20 KiCad Schematic Document !:ext kicad_sch/kicad_sch-bak >>11 string (version >>>19 byte 0x20 >>>>20 regex [0-9.]+ (Version %s) # KiCad Schematic Document (Legacy) d15 1 a15 1 >>>18 byte 0x20 KiCad Schematic Document (Legacy) a21 8 0 string (kicad_symbol_lib >17 byte 0x20 KiCad Symbol Library !:ext kicad_sym >>18 string (version >>>26 byte 0x20 >>>>27 regex [0-9.]+ (Version %s) # KiCad Symbol Library (Legacy) d23 1 a23 1 >16 byte 0x20 KiCad Symbol Library (Legacy) d29 1 a29 1 # KiCad Symbol Library Documentation (Legacy) d31 1 a31 1 >15 byte 0x20 KiCad Symbol Library Documentation (Legacy) d43 1 a43 1 >>>>20 regex [0-9.]+ (Version %s) @ 1.1.1.1.4.1 log @file kicad was added on branch phil-wifi on 2019-06-10 21:44:46 +0000 @ text @d1 69 @ 1.1.1.1.4.2 log @Sync with HEAD @ text @a0 69 #------------------------------------------------------------------------------ # $File: kicad,v 1.1 2018/10/01 18:39:21 christos Exp $ # kicad: file(1) magic for KiCad files # # See # # http://kicad-pcb.org # # KiCad Schematic Document 0 string EESchema >8 byte 0x20 >>9 string Schematic >>>18 byte 0x20 KiCad Schematic Document !:ext sch/bak >>>>24 string Version >>>>>31 byte 0x20 >>>>>>32 string x (Version %s) # KiCad Symbol Library 0 string EESchema-LIBRARY >16 byte 0x20 KiCad Symbol Library !:ext lib >>17 string Version >>>24 byte 0x20 >>>>25 string x (Version %s) # KiCad Symbol Library Documentation 0 string EESchema-DOCLIB >15 byte 0x20 KiCad Symbol Library Documentation !:ext dcm >>17 string Version >>>24 byte 0x20 >>>>25 string x (Version %s) # KiCad Board Layout 0 string (kicad_pcb >10 byte 0x20 KiCad Board Layout !:ext kicad_pcb/kicad_pcb-bak >>11 string (version >>>19 byte 0x20 >>>>20 byte x (Version %c) # KiCad Footprint 0 string (module >7 byte 0x20 KiCad Footprint !:ext kicad_mod # KiCad Footprint (Legacy) 0 string PCBNEW-LibModule-V1 KiCad Footprint (Legacy) !:ext mod # KiCad Netlist 0 string (export >7 byte 0x20 KiCad Netlist !:ext net # KiCad Symbol Library Table 0 string (sym_lib_table >14 byte 0xA KiCad Symbol Library Table >14 byte 0xD KiCad Symbol Library Table >14 byte 0x20 KiCad Symbol Library Table # KiCad Footprint Library Table 0 string (fp_lib_table >13 byte 0xA KiCad Footprint Library Table >13 byte 0xD KiCad Footprint Library Table >13 byte 0x20 KiCad Footprint Library Table @ 1.1.1.1.2.1 log @file kicad was added on branch pgoyette-compat on 2018-10-20 06:58:20 +0000 @ text @d1 69 @ 1.1.1.1.2.2 log @Sync with head @ text @a0 69 #------------------------------------------------------------------------------ # $File: kicad,v 1.1 2018/10/01 18:39:21 christos Exp $ # kicad: file(1) magic for KiCad files # # See # # http://kicad-pcb.org # # KiCad Schematic Document 0 string EESchema >8 byte 0x20 >>9 string Schematic >>>18 byte 0x20 KiCad Schematic Document !:ext sch/bak >>>>24 string Version >>>>>31 byte 0x20 >>>>>>32 string x (Version %s) # KiCad Symbol Library 0 string EESchema-LIBRARY >16 byte 0x20 KiCad Symbol Library !:ext lib >>17 string Version >>>24 byte 0x20 >>>>25 string x (Version %s) # KiCad Symbol Library Documentation 0 string EESchema-DOCLIB >15 byte 0x20 KiCad Symbol Library Documentation !:ext dcm >>17 string Version >>>24 byte 0x20 >>>>25 string x (Version %s) # KiCad Board Layout 0 string (kicad_pcb >10 byte 0x20 KiCad Board Layout !:ext kicad_pcb/kicad_pcb-bak >>11 string (version >>>19 byte 0x20 >>>>20 byte x (Version %c) # KiCad Footprint 0 string (module >7 byte 0x20 KiCad Footprint !:ext kicad_mod # KiCad Footprint (Legacy) 0 string PCBNEW-LibModule-V1 KiCad Footprint (Legacy) !:ext mod # KiCad Netlist 0 string (export >7 byte 0x20 KiCad Netlist !:ext net # KiCad Symbol Library Table 0 string (sym_lib_table >14 byte 0xA KiCad Symbol Library Table >14 byte 0xD KiCad Symbol Library Table >14 byte 0x20 KiCad Symbol Library Table # KiCad Footprint Library Table 0 string (fp_lib_table >13 byte 0xA KiCad Footprint Library Table >13 byte 0xD KiCad Footprint Library Table >13 byte 0x20 KiCad Footprint Library Table @