Debian Bug report logs -
#759561
php5-common: PHP 5.4.4-14+deb7u14: finfo_buffer generates out of memory error on sample file
Reported by: flod <flod@lodolo.net>
Date: Thu, 28 Aug 2014 14:33:01 UTC
Severity: normal
Found in version php5/5.4.4-14+deb7u14
Fixed in versions php5/5.4.34-0+deb7u1, 5.4.35-0deb7u2
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#759561; Package php5-common.
(Thu, 28 Aug 2014 14:33:06 GMT) (full text, mbox, link).
Acknowledgement sent
to flod <flod@lodolo.net>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Thu, 28 Aug 2014 14:33:06 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-common
Version: 5.4.4-14+deb7u14
Severity: normal
Dear Maintainer,
Starting after last update, this simple code generates an out of memory error
$filename = 'test.lang';
$filecontent = file_get_contents($filename);
$info = finfo_open(FILEINFO_MIME_ENCODING);
$type = finfo_buffer($info, $filecontent);
finfo_close($info);
print "{$type} - {$filename}";
PHP Fatal error: Out of memory (allocated 524288) (tried to allocate 4294965546 bytes)
in /home/user/test.php on line 6
Sample file to read: https://www.dropbox.com/s/ii8ybpk8bvxw1rz/test.lang?dl=0
Not sure how useful it is, but if I remove line 352 the error disappears.
If I put only that line in one file I don't get any error.
Same code has been working fine with this file for several months.
-- System Information:
Debian Release: 7.6
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages php5-common depends on:
ii dpkg 1.16.15
ii libc6 2.13-38+deb7u4
ii lsof 4.86+dfsg-1
ii psmisc 22.19-1+deb7u1
ii sed 4.2.1-10
ii ucf 3.0025+nmu3
php5-common recommends no packages.
php5-common suggests no packages.
-- no debconf information
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#759561; Package php5-common.
(Tue, 11 Nov 2014 15:12:07 GMT) (full text, mbox, link).
Acknowledgement sent
to "Francesco Lodolo [:flod]" <flod@lodolo.net>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(Tue, 11 Nov 2014 15:12:08 GMT) (full text, mbox, link).
Message #10 received at 759561@bugs.debian.org (full text, mbox, reply):
With PHP 5.4.34-0+deb7u1 (cli) (built: Oct 20 2014 08:50:30) I'm not
able to reproduce this bug anymore
Marked as fixed in versions php5/5.4.34-0+deb7u1.
Request was from Thijs Kinkhorst <thijs@debian.org>
to control@bugs.debian.org.
(Tue, 11 Nov 2014 18:21:12 GMT) (full text, mbox, link).
Marked Bug as done
Request was from Thijs Kinkhorst <thijs@debian.org>
to control@bugs.debian.org.
(Tue, 11 Nov 2014 18:21:16 GMT) (full text, mbox, link).
Notification sent
to flod <flod@lodolo.net>:
Bug acknowledged by developer.
(Tue, 11 Nov 2014 18:21:17 GMT) (full text, mbox, link).
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Fri, 21 Nov 2014 10:00:09 GMT) (full text, mbox, link).
Notification sent
to flod <flod@lodolo.net>:
Bug acknowledged by developer.
(Fri, 21 Nov 2014 10:00:09 GMT) (full text, mbox, link).
Message #21 received at 759561-done@bugs.debian.org (full text, mbox, reply):
Version: 5.4.35-0deb7u2
Hi,
I have just tested the test case with last security update and it works
just fine.
Thus closing the bug.
Cheers,
Ondrej
On Thu, Aug 28, 2014, at 15:22, flod wrote:
> Package: php5-common
> Version: 5.4.4-14+deb7u14
> Severity: normal
>
> Dear Maintainer,
>
> Starting after last update, this simple code generates an out of memory
> error
>
> $filename = 'test.lang';
> $filecontent = file_get_contents($filename);
> $info = finfo_open(FILEINFO_MIME_ENCODING);
> $type = finfo_buffer($info, $filecontent);
> finfo_close($info);
> print "{$type} - {$filename}";
>
> PHP Fatal error: Out of memory (allocated 524288) (tried to allocate
> 4294965546 bytes)
> in /home/user/test.php on line 6
>
> Sample file to read:
> https://www.dropbox.com/s/ii8ybpk8bvxw1rz/test.lang?dl=0
>
> Not sure how useful it is, but if I remove line 352 the error disappears.
> If I put only that line in one file I don't get any error.
>
> Same code has been working fine with this file for several months.
>
> -- System Information:
> Debian Release: 7.6
> APT prefers stable-updates
> APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages php5-common depends on:
> ii dpkg 1.16.15
> ii libc6 2.13-38+deb7u4
> ii lsof 4.86+dfsg-1
> ii psmisc 22.19-1+deb7u1
> ii sed 4.2.1-10
> ii ucf 3.0025+nmu3
>
> php5-common recommends no packages.
>
> php5-common suggests no packages.
>
> -- no debconf information
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-php-maint
--
Ondřej Surý <ondrej@sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 20 Dec 2014 07:33:24 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 03:48:02 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.