Undefined variable $frame_indexpoints (1.9.7)

Think you found a bug in getID3()? Post here with details.
Post Reply
holyfield
User
Posts: 2
Joined: Thu Sep 13, 2012 1:18 pm
Are you a spambot?: no

Undefined variable $frame_indexpoints (1.9.7)

Post by holyfield » Tue Sep 17, 2013 10:26 pm

In file module.tag.id3v2.php at line 1888 is an undefined variable $frame_indexpoints:

Code: Select all

for ($i = 0; $i < $frame_indexpoints; $i++) {
Probably it should be $parsedFrame['indexpoints'] defined few lines above?

Code: Select all

$frame_offset = 0;
o$parsedFrame['datastart'] = getid3_lib::BigEndian2Int(substr($parsedFrame['data'], $frame_offset, 4));
o$frame_offset += 4;
o$parsedFrame['indexeddatalength'] = getid3_lib::BigEndian2Int(substr($parsedFrame['data'], $frame_offset, 4));
o$frame_offset += 4;
o$parsedFrame['indexpoints'] = getid3_lib::BigEndian2Int(substr($parsedFrame['data'], $frame_offset, 2));
o$frame_offset += 2;
o$parsedFrame['bitsperpoint'] = ord(substr($parsedFrame['data'], $frame_offset++, 1));
o$frame_bytesperpoint = ceil($parsedFrame['bitsperpoint'] / 8);
ofor ($i = 0; $i < $frame_indexpoints; $i++) {
o$parsedFrame['indexes'][$i] = getid3_lib::BigEndian2Int(substr($parsedFrame['data'], $frame_offset, $frame_bytesperpoint));
o$frame_offset += $frame_bytesperpoint;
o}
ounset($parsedFrame['data']);

James Heinrich
getID3() v1 developer
Posts: 1421
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: Undefined variable $frame_indexpoints (1.9.7)

Post by James Heinrich » Tue Sep 17, 2013 10:37 pm

I believe you are correct. Fix added:
https://github.com/JamesHeinrich/getID3 ... 4f0511cecd

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest