Skip Menu |

This queue is for tickets about the Audio-FLAC-Header CPAN distribution.

Report information
The Basics
Id: 42305
Status: resolved
Priority: 0/
Queue: Audio-FLAC-Header

People
Owner: Nobody in particular
Requestors: nick.cpan [...] xlmt.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.3
Fixed in: (no value)



Subject: infinite loop in _parseVorbisComments with broken FLAC file
When using Audio::FLAC::Header in pure perl mode, the attached (broken) FLAC file causes an effectively infinite loop in the _parseVorbisComments method: substr outside of string at /home/nick/FLAC-Header-work/Audio-FLAC-Header-2.3/blib/lib/Audio/FLAC/Header.pm line 452. Use of uninitialized value in unpack at /home/nick/FLAC-Header-work/Audio-FLAC-Header-2.3/blib/lib/Audio/FLAC/Header.pm line 452. Use of uninitialized value in substr at /home/nick/FLAC-Header-work/Audio-FLAC-Header-2.3/blib/lib/Audio/FLAC/Header.pm line 453. substr outside of string at /home/nick/FLAC-Header-work/Audio-FLAC-Header-2.3/blib/lib/Audio/FLAC/Header.pm line 453. Use of uninitialized value in pattern match (m//) at /home/nick/FLAC-Header-work/Audio-FLAC-Header-2.3/blib/lib/Audio/FLAC/Header.pm line 459. Use of uninitialized value in addition (+) at /home/nick/FLAC-Header-work/Audio-FLAC-Header-2.3/blib/lib/Audio/FLAC/Header.pm line 481. substr outside of string at /home/nick/FLAC-Header-work/Audio-FLAC-Header-2.3/blib/lib/Audio/FLAC/Header.pm line 452. .... and so it continues ... It seems that $numTags gets set to 1_090_519_040 I'm using: Audio::FLAC::Header v2.3 perl v5.8.8 Linux version 2.6.27-gentoo-r7 on x86 The broken FLAC file was itself generated by Audio::FLAC::Header's _write_PP method. I'll file a separate bug for this.
Subject: broken.flac
Download broken.flac
application/octet-stream 12.1k

Message body not shown because it is not plain text.

Fixed! Now on github: http://github.com/dsully/perl-audio-flac-header/tree/master I'll push out a v2.4 to CPAN at some point.