Edit report at https://bugs.php.net/bug.php?id=63304&edit=1

 ID:                 63304
 Updated by:         larue...@php.net
 Reported by:        bruno dot monteiro at atelierlogico dot com
 Summary:            Malloc error using finfo_open
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Unknown/Other Function
 Operating System:   Mac OS X 10.8.2
 PHP Version:        5.3.17
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2012-10-18 13:51:09] 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");' 



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=63304&edit=1

Reply via email to