mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
KYRA: Fix Valgrind Uninitialized Memory Read at end of VQA Playback.
svn-id: r55619
This commit is contained in:
parent
f050e2d66f
commit
450dac35c7
@ -106,6 +106,9 @@ uint32 VQAMovie::readTag() {
|
||||
|
||||
uint32 tag = _file->readUint32BE();
|
||||
|
||||
if (_file->eos())
|
||||
return 0;
|
||||
|
||||
if (!(tag & 0xFF000000)) {
|
||||
tag = (tag << 8) | _file->readByte();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user