php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63304 Malloc error using finfo_open
Submitted: 2012-10-18 13:51 UTC Modified: -
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: bruno dot monteiro at atelierlogico dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 5.3.17 OS: Mac OS X 10.8.2
Private report: No CVE-ID: None
 [2012-10-18 13:51 UTC] bruno dot monteiro at atelierlogico dot com
Description:
------------
I was testing Joomla with K2 and I got this error every time I tried to upload 
something:

php(14200) malloc: *** error for object 0x7fff520566f0: pointer being freed was 
not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

The line that is causing the error is:
$f = finfo_open(FILEINFO_MIME, "/usr/share/file/magic");

I asked some friends with the same OS version (w/ PHP 5.3.17/5.3.15) and they all 
have the same problem.

Test script:
---------------
php -r 'finfo_open(1040, "/usr/share/file/magic");' 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-18 15:31 UTC] laruence@php.net
-Status: Open +Status: Closed
 [2012-10-18 15:31 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0d7965f0a32dc967a1665d274cdc0e39d44c87bb
Log: Merge the fix for #61964 to 5.3, which will fix #63304
 [2012-10-18 15:32 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0d7965f0a32dc967a1665d274cdc0e39d44c87bb
Log: Merge the fix for #61964 to 5.3, which will fix #63304
 [2012-10-18 15:34 UTC] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0d7965f0a32dc967a1665d274cdc0e39d44c87bb
Log: Merge the fix for #61964 to 5.3, which will fix #63304
 [2014-10-07 23:21 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=0d7965f0a32dc967a1665d274cdc0e39d44c87bb
Log: Merge the fix for #61964 to 5.3, which will fix #63304
 [2014-10-07 23:32 UTC] stas@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src-security.git;a=commit;h=0d7965f0a32dc967a1665d274cdc0e39d44c87bb
Log: Merge the fix for #61964 to 5.3, which will fix #63304
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 03:01:30 2024 UTC