mirror of
https://github.com/taglib/taglib.git
synced 2026-01-31 04:20:18 -05: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