[Scummvm-cvs-logs] scummvm master -> 5bcc20cdd051b4a589339fcbb81b8f4bccc05ca0
eriktorbjorn
eriktorbjorn at telia.com
Sun Apr 28 14:17:02 CEST 2013
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:
5bcc20cdd0 SWORD2: Fix potential allocation size mismatch. CID 1003324.
Commit: 5bcc20cdd051b4a589339fcbb81b8f4bccc05ca0
https://github.com/scummvm/scummvm/commit/5bcc20cdd051b4a589339fcbb81b8f4bccc05ca0
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2013-04-28T05:15:29-07:00
Commit Message:
SWORD2: Fix potential allocation size mismatch. CID 1003324.
Changed paths:
engines/sword2/console.cpp
diff --git a/engines/sword2/console.cpp b/engines/sword2/console.cpp
index 28e2e8ce..4838bd1 100644
--- a/engines/sword2/console.cpp
+++ b/engines/sword2/console.cpp
@@ -173,7 +173,7 @@ bool Debugger::Cmd_Mem(int argc, const char **argv) {
int16 numBlocks = _vm->_memory->getNumBlocks();
MemBlock *memBlocks = _vm->_memory->getMemBlocks();
- MemBlock **blocks = (MemBlock **)malloc(numBlocks * sizeof(MemBlock));
+ MemBlock **blocks = (MemBlock **)malloc(numBlocks * sizeof(MemBlock *));
int i, j;
More information about the Scummvm-git-logs
mailing list