[php-maint] Bug#703504: libapache2-mod-php5: Statically linked libmagic in PHP 5.4 and 5.5 detects Visio as "application/msword"

vitalif at yourcmc.ru vitalif at yourcmc.ru
Wed Mar 20 12:04:51 UTC 2013


Package: libapache2-mod-php5
Version: 5.4.4-14
Severity: normal

Dear Maintainer,

PHP 5 has a statically linked patched libmagic included in it as a part 
of 'fileinfo' extension.
It is 2 years old and has bugs. It would be good if PHP authors updated 
it and also submitted parts
of their libmagic patch upstream, but it's not done (yet?)

And included libmagic has the same bug as libmagic 5.11 - all MSOffice 
documents unknown to it are
detected as "application/msword". For example, any Visio (CDF) document 
is detected as "application/msword",
which is incorrect.

This problem can be fixed with a simple patch (attached). It is also 
actual for PHP 5.5.

-- System Information:
Debian Release: 7.0
   APT prefers testing
   APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) 
(ignored: LC_ALL set to ru_RU.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libapache2-mod-php5 depends on:
ii  apache2-mpm-itk   2.2.22-12
ii  apache2.2-common  2.2.22-12
ii  libbz2-1.0        1.0.6-4
ii  libc6             2.13-37
ii  libcomerr2        1.42.5-1
ii  libdb5.1          5.1.29-5
ii  libgssapi-krb5-2  1.10.1+dfsg-3
ii  libk5crypto3      1.10.1+dfsg-3
ii  libkrb5-3         1.10.1+dfsg-3
ii  libmagic1         5.11-2
ii  libonig2          5.9.1-1
ii  libpcre3          1:8.30-5
ii  libqdbm14         1.8.78-2
ii  libssl1.0.0       1.0.1c-4
ii  libstdc++6        4.7.2-5
ii  libxml2           2.8.0+dfsg1-7
ii  mime-support      3.52-1
ii  php5-common       5.4.4-14
ii  tzdata            2012j-1
ii  ucf               3.0025+nmu3
ii  zlib1g            1:1.2.7.dfsg-13

Versions of packages libapache2-mod-php5 recommends:
ii  php5-cli  5.4.4-14

Versions of packages libapache2-mod-php5 suggests:
pn  php-pear  <none>

-- no debconf information
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: readcdf.c.diff
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20130320/97d58e84/attachment.ksh>


More information about the pkg-php-maint mailing list