[Scummvm-git-logs] scummvm master -> a9a3089aa5227d7d0f18f51dc6a9637f20a542df
bgK
bastien.bouclet at gmail.com
Fri Jul 7 19:46:03 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a9a3089aa5 MOHAWK: Fix tMOV size computation not to use uninitialized memory
Commit: a9a3089aa5227d7d0f18f51dc6a9637f20a542df
https://github.com/scummvm/scummvm/commit/a9a3089aa5227d7d0f18f51dc6a9637f20a542df
Author: Bastien Bouclet (bastien.bouclet at gmail.com)
Date: 2017-07-07T19:44:18+02:00
Commit Message:
MOHAWK: Fix tMOV size computation not to use uninitialized memory
Changed paths:
engines/mohawk/resource.cpp
diff --git a/engines/mohawk/resource.cpp b/engines/mohawk/resource.cpp
index 430361d..b0ae8dd 100644
--- a/engines/mohawk/resource.cpp
+++ b/engines/mohawk/resource.cpp
@@ -297,6 +297,7 @@ bool MohawkArchive::openStream(Common::SeekableReadStream *stream) {
// than passing _stream at the right offset). We may want to do that in the future, though.
if (tag == ID_TMOV) {
uint16 nextFileIndex = index;
+ res.size = 0;
while (res.size == 0) {
if (nextFileIndex == fileTable.size())
res.size = stream->size() - fileTable[index - 1].offset;
More information about the Scummvm-git-logs
mailing list