php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57287 id3_get_tag segfaults when mp3 file is not readable
Submitted: 2006-10-08 07:53 UTC Modified: 2015-05-26 12:05 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: roel at koelkast dot net Assigned:
Status: Suspended Package: id3 (PECL)
PHP Version: 5.1.6 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2006-10-08 07:53 UTC] roel at koelkast dot net
Description:
------------
Operating system: gentoo linux, 2.6.14-hardened kernel, php 5.1.6-pl4, Apache 2.0.58, pecl-id3 version 0.2.

I mounted an mp3dir using samba. Although php's is_readable() returns the file is readable, the file isn't. The samba share i'm reading the info from, didn't share that file as readable.

When i try id3_get_tag() on a file (on that samba share), which is not readable, the apache child segfaults: [Sun Oct 08 13:38:28 2006] [notice] child pid 13319 exit signal Segmentation fault (11).

I don't know if it also crashes on a non-readable file, not on a samba share.

id3_get_version() seems to handle well, it returns a php-error message.


Reproduce code:
---------------
if($tag = @id3_get_tag($mediaDir.$file)) {;
	print_r($tag);
} else {
	echo "Can't read tag information from $file<br>\n";
}

Expected result:
----------------
$tag should be filled with id3 tag information.

Actual result:
--------------
If the file is readonly; it returns a blank page and the apache child segfaults.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-26 12:05 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2015-05-26 12:05 UTC] cmb@php.net
The PECL extension id3 is apparently not maintained any more. Changing to "suspended" until that changes.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 09 15:01:28 2024 UTC