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 |
Message body not shown because it is not plain text.