mirror of
https://github.com/taglib/taglib.git
synced 2025-08-22 06:04:31 -04:00
Fixed detecting RIFF files with invalid chunk sizes
This commit is contained in:
@ -273,7 +273,7 @@ void RIFF::File::read()
|
||||
break;
|
||||
}
|
||||
|
||||
if(tell() + chunkSize > uint(length())) {
|
||||
if(static_cast<ulonglong>(tell()) + chunkSize > static_cast<ulonglong>(length())) {
|
||||
debug("RIFF::File::read() -- Chunk '" + chunkName + "' has invalid size (larger than the file size)");
|
||||
setValid(false);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user