From 95f0e2099c31e7cf4fc3b86cc483dda492b17fb892ee79e9c2842e6066353b14 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 25 Jun 2014 09:07:53 +0000 Subject: [PATCH 1/2] Bugfix version update OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=99 --- file-5.07-clicfs.dif | 2 +- file-5.14-misc.dif | 107 ------------------- file-5.14-printf.dif | 29 ----- file-5.18.tar.gz | 3 - file-5.07-biorad.dif => file-5.19-biorad.dif | 6 +- file-5.19-clicfs.dif | 14 +++ file-4.24-cromfs.dif => file-5.19-cromfs.dif | 6 +- file-5.19-misc.dif | 11 ++ file-5.19-printf.dif | 19 ++++ file-4.24-solv.dif => file-5.19-solv.dif | 6 +- file-5.12-zip2.0.dif => file-5.19-zip2.0.dif | 6 +- file-5.17.dif => file-5.19.dif | 2 +- file-5.19.tar.gz | 3 + file.changes | 35 ++++++ file.spec | 18 ++-- python-magic.changes | 5 + python-magic.spec | 2 +- 17 files changed, 111 insertions(+), 163 deletions(-) delete mode 100644 file-5.14-misc.dif delete mode 100644 file-5.14-printf.dif delete mode 100644 file-5.18.tar.gz rename file-5.07-biorad.dif => file-5.19-biorad.dif (72%) create mode 100644 file-5.19-clicfs.dif rename file-4.24-cromfs.dif => file-5.19-cromfs.dif (75%) create mode 100644 file-5.19-misc.dif create mode 100644 file-5.19-printf.dif rename file-4.24-solv.dif => file-5.19-solv.dif (53%) rename file-5.12-zip2.0.dif => file-5.19-zip2.0.dif (77%) rename file-5.17.dif => file-5.19.dif (99%) create mode 100644 file-5.19.tar.gz diff --git a/file-5.07-clicfs.dif b/file-5.07-clicfs.dif index 92c1dab..8f25d1c 100644 --- a/file-5.07-clicfs.dif +++ b/file-5.07-clicfs.dif @@ -3,7 +3,7 @@ @@ -53,3 +53,11 @@ 0 string SOLV Sat-solver solv file, - >4 belong x version %ld + >4 belong x version %d + +# coolo's clicfs + diff --git a/file-5.14-misc.dif b/file-5.14-misc.dif deleted file mode 100644 index a406fd9..0000000 --- a/file-5.14-misc.dif +++ /dev/null @@ -1,107 +0,0 @@ ---- magic/Magdir/audio -+++ magic/Magdir/audio 2013-09-30 00:00:00.000000000 +0000 -@@ -129,7 +129,7 @@ - # Oct 31, 1995 - # fixed by 2003-06-24 - # Too short... --#0 string MTM MultiTracker Module sound file -+#0 string MTM MultiTracker Module sound data - #0 string if Composer 669 Module sound data - #0 string JN Composer 669 Module sound data (extended format) - 0 string MAS_U ULT(imate) Module sound data ---- magic/Magdir/bsdi -+++ magic/Magdir/bsdi 2013-09-30 00:00:00.000000000 +0000 -@@ -11,7 +11,7 @@ - >32 byte 0x6a (uses shared libs) - - # same as in SunOS 4.x, except for static shared libraries --0 belong&077777777 0600413 sparc demand paged -+0 belong&077777777 0600413 SPARC demand paged - >0 byte &0x80 - >>20 belong <4096 shared library - >>20 belong =4096 dynamically linked executable -@@ -20,13 +20,13 @@ - >16 belong >0 not stripped - >36 belong 0xb4100001 (uses shared libs) - --0 belong&077777777 0600410 sparc pure -+0 belong&077777777 0600410 SPARC pure - >0 byte &0x80 dynamically linked executable - >0 byte ^0x80 executable - >16 belong >0 not stripped - >36 belong 0xb4100001 (uses shared libs) - --0 belong&077777777 0600407 sparc -+0 belong&077777777 0600407 SPARC - >0 byte &0x80 dynamically linked executable - >0 byte ^0x80 executable - >16 belong >0 not stripped ---- magic/Magdir/mach -+++ magic/Magdir/mach 2013-09-30 00:00:00.000000000 +0000 -@@ -121,7 +121,7 @@ - >>>4 belong&0x00ffffff 1 mc88100 - >>>4 belong&0x00ffffff 2 mc88110 - >>>4 belong&0x00ffffff >2 mc88000 subarchitecture=%ld -->>0 belong&0x00ffffff 14 sparc -+>>0 belong&0x00ffffff 14 SPARC - >>0 belong&0x00ffffff 15 i860g - >>0 belong&0x00ffffff 16 alpha - >>0 belong&0x00ffffff 17 rs6000 ---- magic/Magdir/netbsd -+++ magic/Magdir/netbsd 2013-09-30 00:00:00.000000000 +0000 -@@ -100,25 +100,25 @@ - 0 belong&0377777777 045200507 a.out NetBSD/powerpc core - >12 string >\0 from '%s' - --0 belong&0377777777 042400413 a.out NetBSD/sparc demand paged -+0 belong&0377777777 042400413 a.out NetBSD/SPARC demand paged - >0 byte &0x80 - >>20 belong <8192 shared library - >>20 belong =8192 dynamically linked executable - >>20 belong >8192 dynamically linked executable - >0 byte ^0x80 executable - >16 belong >0 not stripped --0 belong&0377777777 042400410 a.out NetBSD/sparc pure -+0 belong&0377777777 042400410 a.out NetBSD/SPARC pure - >0 byte &0x80 dynamically linked executable - >0 byte ^0x80 executable - >16 belong >0 not stripped --0 belong&0377777777 042400407 a.out NetBSD/sparc -+0 belong&0377777777 042400407 a.out NetBSD/SPARC - >0 byte &0x80 dynamically linked executable - >0 byte ^0x80 - >>0 byte &0x40 position independent - >>20 belong !0 executable - >>20 belong =0 object file - >16 belong >0 not stripped --0 belong&0377777777 042400507 a.out NetBSD/sparc core -+0 belong&0377777777 042400507 a.out NetBSD/SPARC core - >12 string >\0 from '%s' - >32 belong !0 (signal %d) - ---- magic/Magdir/sun -+++ magic/Magdir/sun 2013-09-30 00:00:00.000000000 +0000 -@@ -9,7 +9,7 @@ - # are in aout, as they're indistinguishable from other big-endian - # 32-bit a.out files. - # --0 belong&077777777 0600413 a.out SunOS sparc demand paged -+0 belong&077777777 0600413 a.out SunOS SPARC demand paged - >0 byte &0x80 - >>20 belong <4096 shared library - >>20 belong =4096 dynamically linked executable -@@ -17,12 +17,12 @@ - >0 byte ^0x80 executable - >16 belong >0 not stripped - --0 belong&077777777 0600410 a.out SunOS sparc pure -+0 belong&077777777 0600410 a.out SunOS SPARC pure - >0 byte &0x80 dynamically linked executable - >0 byte ^0x80 executable - >16 belong >0 not stripped - --0 belong&077777777 0600407 a.out SunOS sparc -+0 belong&077777777 0600407 a.out SunOS SPARC - >0 byte &0x80 dynamically linked executable - >0 byte ^0x80 executable - >16 belong >0 not stripped diff --git a/file-5.14-printf.dif b/file-5.14-printf.dif deleted file mode 100644 index 0635904..0000000 --- a/file-5.14-printf.dif +++ /dev/null @@ -1,29 +0,0 @@ ---- src/apprentice.c -+++ src/apprentice.c 2013-09-30 00:00:00.000000000 +0000 -@@ -2072,8 +2072,16 @@ check_format_type(const char *ptr, int t - quad = 1; - /*FALLTHROUGH*/ - case FILE_FMT_NUM: -+ if (*ptr == '#') -+ ptr++; -+ if (*ptr == ' ') -+ ptr++; - if (*ptr == '-') - ptr++; -+ if (*ptr == '+') -+ ptr++; -+ if (*ptr == '\'') -+ ptr++; - if (*ptr == '.') - ptr++; - while (isdigit((unsigned char)*ptr)) ptr++; -@@ -2115,6 +2123,9 @@ check_format_type(const char *ptr, int t - default: - return -1; - } -+ case 'o': -+ case 'x': -+ case 'X': - case 'd': - return 0; - default: diff --git a/file-5.18.tar.gz b/file-5.18.tar.gz deleted file mode 100644 index 4c088d7..0000000 --- a/file-5.18.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6519fb706d583231c2419592ebecdbb21d33c62eaf7a1a0b24ddfcb80c08bf07 -size 715461 diff --git a/file-5.07-biorad.dif b/file-5.19-biorad.dif similarity index 72% rename from file-5.07-biorad.dif rename to file-5.19-biorad.dif index f086e7a..dd5eb00 100644 --- a/file-5.07-biorad.dif +++ b/file-5.19-biorad.dif @@ -1,6 +1,6 @@ --- magic/Magdir/images -+++ magic/Magdir/images 2013-09-30 00:00:00.000000000 +0000 -@@ -640,6 +640,8 @@ ++++ magic/Magdir/images 2014-06-24 16:36:26.658235329 +0000 +@@ -655,6 +655,8 @@ # http://web.archive.org/web/20050317223257/www.cs.ubc.ca/spider/ladic/text/biorad.txt # Samples: http://www.loci.wisc.edu/software/sample-data 14 leshort <2 @@ -8,4 +8,4 @@ +>49 byte 0 >62 leshort <2 >>54 leshort 12345 Bio-Rad .PIC Image File - >>>0 leshort >0 %hd x + >>>0 leshort >0 %d x diff --git a/file-5.19-clicfs.dif b/file-5.19-clicfs.dif new file mode 100644 index 0000000..8f25d1c --- /dev/null +++ b/file-5.19-clicfs.dif @@ -0,0 +1,14 @@ +--- magic/Localstuff ++++ magic/Localstuff 2013-09-30 00:00:00.000000000 +0000 +@@ -53,3 +53,11 @@ + + 0 string SOLV Sat-solver solv file, + >4 belong x version %d ++ ++# coolo's clicfs ++ ++0 string/b CLIC ClicFS ++>4 byte x \b Version %c ++>5 byte x \b%c ++>6 long >0 ++>>6 pstring/l >0 \b, Target "%s" diff --git a/file-4.24-cromfs.dif b/file-5.19-cromfs.dif similarity index 75% rename from file-4.24-cromfs.dif rename to file-5.19-cromfs.dif index 9128cd7..6319028 100644 --- a/file-4.24-cromfs.dif +++ b/file-5.19-cromfs.dif @@ -1,5 +1,5 @@ --- magic/Localstuff -+++ magic/Localstuff 2013-09-30 00:00:00.000000000 +0000 ++++ magic/Localstuff 2014-06-25 08:49:53.486735323 +0000 @@ -36,3 +36,16 @@ # File magic for X11 cursor data files @@ -13,7 +13,7 @@ +>16 ulequad >0 \b fblock table at %lld, +>24 ulequad >0 \b inode table at %lld, +>32 ulequad >0 \b root at %lld, -+>40 ulelong >0 \b fblock size = %ld, -+>44 ulelong >0 \b block size = %ld, ++>40 ulelong >0 \b fblock size = %d, ++>44 ulelong >0 \b block size = %d, +>48 ulequad >0 \b bytes = %lld + diff --git a/file-5.19-misc.dif b/file-5.19-misc.dif new file mode 100644 index 0000000..e55ea26 --- /dev/null +++ b/file-5.19-misc.dif @@ -0,0 +1,11 @@ +--- magic/Magdir/audio ++++ magic/Magdir/audio 2013-09-30 00:00:00.000000000 +0000 +@@ -129,7 +129,7 @@ + # Oct 31, 1995 + # fixed by 2003-06-24 + # Too short... +-#0 string MTM MultiTracker Module sound file ++#0 string MTM MultiTracker Module sound data + #0 string if Composer 669 Module sound data + #0 string JN Composer 669 Module sound data (extended format) + 0 string MAS_U ULT(imate) Module sound data diff --git a/file-5.19-printf.dif b/file-5.19-printf.dif new file mode 100644 index 0000000..5284e05 --- /dev/null +++ b/file-5.19-printf.dif @@ -0,0 +1,19 @@ +--- src/apprentice.c ++++ src/apprentice.c 2014-06-24 16:33:48.770235732 +0000 +@@ -2173,8 +2173,16 @@ check_format_type(const char *ptr, int t + } + } else + h = 0; ++ if (*ptr == '#') ++ ptr++; ++ if (*ptr == ' ') ++ ptr++; + if (*ptr == '-') + ptr++; ++ if (*ptr == '+') ++ ptr++; ++ if (*ptr == '\'') ++ ptr++; + if (*ptr == '.') + ptr++; + while (isdigit((unsigned char)*ptr)) ptr++; diff --git a/file-4.24-solv.dif b/file-5.19-solv.dif similarity index 53% rename from file-4.24-solv.dif rename to file-5.19-solv.dif index cfa4d20..1fca437 100644 --- a/file-4.24-solv.dif +++ b/file-5.19-solv.dif @@ -1,10 +1,10 @@ --- magic/Localstuff -+++ magic/Localstuff 2013-09-30 00:00:00.000000000 +0000 ++++ magic/Localstuff 2014-06-25 08:53:43.110735387 +0000 @@ -49,3 +49,7 @@ - >44 ulelong >0 \b block size = %ld, + >44 ulelong >0 \b block size = %d, >48 ulequad >0 \b bytes = %lld +# libsatsolver solv file + +0 string SOLV Sat-solver solv file, -+>4 belong x version %ld ++>4 belong x version %d diff --git a/file-5.12-zip2.0.dif b/file-5.19-zip2.0.dif similarity index 77% rename from file-5.12-zip2.0.dif rename to file-5.19-zip2.0.dif index 98a05f6..9993145 100644 --- a/file-5.12-zip2.0.dif +++ b/file-5.19-zip2.0.dif @@ -1,12 +1,12 @@ --- magic/Magdir/archive -+++ magic/Magdir/archive 2013-09-30 00:00:00.000000000 +0000 -@@ -585,6 +585,10 @@ ++++ magic/Magdir/archive 2014-06-25 08:56:37.758234870 +0000 +@@ -586,6 +586,10 @@ # PKZIP multi-volume archive 0 string PK\x07\x08PK\x03\x04 Zip multi-volume archive data, at least PKZIP v2.50 to extract !:mime application/zip +>30 ubelong 0x6d696d65 Zip archive data, at least v2.0 to extract +>>34 ubelong 0x74797065 \b, mime type -+>>>38 regex application/[a-z\+\-]+ \b %s ++>>>38 regex application/[a-z+-]+ \b %s +!:mime application/unknown+zip # Zip archives (Greg Roelofs, c/o zip-bugs@wkuvx1.wku.edu) diff --git a/file-5.17.dif b/file-5.19.dif similarity index 99% rename from file-5.17.dif rename to file-5.19.dif index 41c22a3..49cf5b2 100644 --- a/file-5.17.dif +++ b/file-5.19.dif @@ -37,7 +37,7 @@ +>510 leshort <0xAA55 Kernel +>510 leshort >0xAA55 Kernel +>518 leshort 0x0105 \b, Setup Version 0x105, zImage -+>518 leshort >0x0105 \b, Setup Version %#hx ++>518 leshort >0x0105 \b, Setup Version %#x +>518 leshort >0x1ff +>>529 byte 0 \b, zImage +>>529 byte 1 \b, bzImage diff --git a/file-5.19.tar.gz b/file-5.19.tar.gz new file mode 100644 index 0000000..d7a8ea6 --- /dev/null +++ b/file-5.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9484b3bbda1acc7b13a4f71031a85ce10c77bd0ffec7226741a219ef587e3a7c +size 719158 diff --git a/file.changes b/file.changes index 39a66a2..1344284 100644 --- a/file.changes +++ b/file.changes @@ -1,3 +1,38 @@ +------------------------------------------------------------------- +Tue Jun 24 16:27:38 UTC 2014 - werner@suse.de + +- Update to file version 5.19 + * Misc buffer overruns and missing buffer size tests in cdf parsing + (Francisco Alonso, Jan Kaluza) + * Enforce limit of 8K on regex searches that have no limits + * Allow the l modifier for regex to mean line count. Default + to byte count. If line count is specified, assume a max + of 80 characters per line to limit the byte count. + * Don't allow conversions to be used for dates, allowing + the mask field to be used as an offset. + * Make the range operator limit the length of the + regex search. + * PR/347: Windows fixes + * PR/352: Hangul word processor recognition + * PR/354: Encoding irregularities in text files + * Fix uninitialized title in CDF files (Jan Kaluza) + * PR/351: Fix compilation of empty files + * Fix integer formats: We don't specify 'l' or + 'h' and 'hh' specifiers anymore, only 'll' for + quads and nothing for the rest. This is so that + magic writing is simpler. + * PR/341: Jan Kaluza, fix memory leak + * PR/342: Jan Kaluza, fix out of bounds read + * Fix issue with long formats not matching fmtcheck +- Rename and change patch file-5.14-misc.dif to file-5.19-misc.dif +- Rename and change patch file-5.14-printf.dif to file-5.19-printf.dif +- Rename and change patch file-5.07-biorad.dif to file-5.19-biorad.dif +- Rename and change patch file-5.19.dif to file-5.17.dif +- Rename and change patch file-4.24-cromfs.dif to file-5.19-cromfs.dif +- Rename and change patch file-4.24-solv.dif to file-5.19-solv.dif +- Rename and change patch file-5.12-zip2.0.dif to file-5.19-zip2.0.dif +- Rename and change patch file-5.07-clicfs.dif to file-5.19-clicfs.dif + ------------------------------------------------------------------- Thu May 8 19:56:07 UTC 2014 - crrodriguez@opensuse.org diff --git a/file.spec b/file.spec index f9af444..252ffc6 100644 --- a/file.spec +++ b/file.spec @@ -30,33 +30,33 @@ Obsoletes: file-64bit %endif # # Set Version also in python-magic.spec -Version: 5.18 +Version: 5.19 Release: 0 Summary: A Tool to Determine File Types License: BSD-2-Clause Group: Productivity/File utilities Source: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz Source2: baselibs.conf -Patch: file-5.17.dif -Patch1: file-5.14-misc.dif +Patch: file-5.19.dif +Patch1: file-5.19-misc.dif Patch4: file-4.24-autoconf.dif Patch5: file-5.14-tex.dif Patch7: file-4.20-ssd.dif Patch8: file-4.20-xen.dif Patch9: file-5.18-elf.dif -Patch10: file-5.14-printf.dif +Patch10: file-5.19-printf.dif Patch11: file-5.12-zip.dif Patch12: file-5.17-option.dif Patch13: file-4.21-scribus.dif Patch15: file-4.21-xcursor.dif Patch20: file-4.24-mips.dif -Patch22: file-4.24-cromfs.dif +Patch22: file-5.19-cromfs.dif Patch25: file-5.18-javacheck.dif -Patch26: file-4.24-solv.dif -Patch27: file-5.12-zip2.0.dif +Patch26: file-5.19-solv.dif +Patch27: file-5.19-zip2.0.dif Patch28: file-5.07-iso9660.dif -Patch31: file-5.07-biorad.dif -Patch32: file-5.07-clicfs.dif +Patch31: file-5.19-biorad.dif +Patch32: file-5.19-clicfs.dif Patch33: file-5.16-ocloexec.patch Patch34: file-5.18-endian.patch Patch35: file-5.12-nitpick.dif diff --git a/python-magic.changes b/python-magic.changes index 5bf438f..2e438a9 100644 --- a/python-magic.changes +++ b/python-magic.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 25 09:07:13 UTC 2014 - werner@suse.de + +- adapt version in specfile to 5.19 + ------------------------------------------------------------------- Fri Feb 28 11:17:12 CET 2014 - ro@suse.de diff --git a/python-magic.spec b/python-magic.spec index 9e298a3..27e0cd3 100644 --- a/python-magic.spec +++ b/python-magic.spec @@ -23,7 +23,7 @@ BuildRequires: libtool BuildRequires: python-devel BuildRequires: zlib-devel Url: http://www.darwinsys.com/file/ -Version: 5.18 +Version: 5.19 Release: 0 Summary: Python module to use libmagic License: BSD-3-Clause and BSD-4-Clause From b9a1f545298dc0dd40c0a8fab9def5fb33376cb2871429d7f24ad17ef6bf03af Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Wed, 25 Jun 2014 09:29:02 +0000 Subject: [PATCH 2/2] Bugfix version update OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=100 --- file-5.07-clicfs.dif | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 file-5.07-clicfs.dif diff --git a/file-5.07-clicfs.dif b/file-5.07-clicfs.dif deleted file mode 100644 index 8f25d1c..0000000 --- a/file-5.07-clicfs.dif +++ /dev/null @@ -1,14 +0,0 @@ ---- magic/Localstuff -+++ magic/Localstuff 2013-09-30 00:00:00.000000000 +0000 -@@ -53,3 +53,11 @@ - - 0 string SOLV Sat-solver solv file, - >4 belong x version %d -+ -+# coolo's clicfs -+ -+0 string/b CLIC ClicFS -+>4 byte x \b Version %c -+>5 byte x \b%c -+>6 long >0 -+>>6 pstring/l >0 \b, Target "%s"