mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Consider FLAC file as being invalid if a 0 length block is found
This commit is contained in:
parent
2d7414733e
commit
ad9ffc62e6
@ -425,7 +425,7 @@ void FLAC::File::scan()
|
||||
length = header.mid(1, 3).toUInt();
|
||||
|
||||
ByteVector data = readBlock(length);
|
||||
if(data.size() != length) {
|
||||
if(data.size() != length || length == 0) {
|
||||
debug("FLAC::File::scan() -- FLAC stream corrupted");
|
||||
setValid(false);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user