php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #58054
Patch id3_segfault revision 2012-05-10 17:13 UTC by mls at o2 dot pl

Patch id3_segfault for id3 Bug #58054

Patch version 2012-05-10 17:13 UTC

Return to Bug #58054 | Download this patch
Patch Revisions:

Developer: mls@o2.pl

--- id3.c	2004-09-24 19:40:28.000000000 +0200
+++ id3.c.fixed	2012-05-10 18:59:57.000000000 +0200
@@ -270,11 +270,11 @@
    Returns an array containg all information from the id3 tag */
 PHP_FUNCTION(id3_get_tag)
 {
-	zval *arg;
+	zval *arg = NULL;
 	php_stream *stream;
 	
-	int	version = ID3_BEST,
-		versionCheck = 0,
+	long version = ID3_BEST;
+	int	versionCheck = 0,
 		opened = 0;
 	
 	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", &arg, &version) == FAILURE) {
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Oct 23 02:01:31 2019 UTC