diff options
author | David Turner | 2011-01-29 18:20:38 +0000 |
---|---|---|
committer | David Turner | 2011-01-29 18:20:38 +0000 |
commit | 450dac35c714c5e5bf1f4ef66b2d2acda4b45a55 (patch) | |
tree | f27dc897d4dfd1ac52039460baf1f819fa8db380 /engines | |
parent | f050e2d66fd384c2d102152aa9371474b08e8664 (diff) | |
download | scummvm-rg350-450dac35c714c5e5bf1f4ef66b2d2acda4b45a55.tar.gz scummvm-rg350-450dac35c714c5e5bf1f4ef66b2d2acda4b45a55.tar.bz2 scummvm-rg350-450dac35c714c5e5bf1f4ef66b2d2acda4b45a55.zip |
KYRA: Fix Valgrind Uninitialized Memory Read at end of VQA Playback.
svn-id: r55619
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/vqa.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/vqa.cpp b/engines/kyra/vqa.cpp index d0e54f996b..674a5755cf 100644 --- a/engines/kyra/vqa.cpp +++ b/engines/kyra/vqa.cpp @@ -106,6 +106,9 @@ uint32 VQAMovie::readTag() { uint32 tag = _file->readUint32BE(); + if (_file->eos()) + return 0; + if (!(tag & 0xFF000000)) { tag = (tag << 8) | _file->readByte(); } |