|  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
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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
10 + 19 = ?
Subscribe to this entry?

 [2006-10-08 07:53 UTC] roel at koelkast dot net
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)) {;
} 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-26 12:05 UTC]
-Status: Open +Status: Suspended
 [2015-05-26 12:05 UTC]
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: Tue Apr 23 05:01:28 2024 UTC