aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/part.h
diff options
context:
space:
mode:
authorKari Salminen2008-08-11 20:18:33 +0000
committerKari Salminen2008-08-11 20:18:33 +0000
commitc1462dda14e45e14f9070047d62f7b26130525b1 (patch)
tree64abdd07fae5a8fd04b2cc477e1c08bffe182b6b /engines/cine/part.h
parent02c9cb35f4e190891a4d59a2f335b817a9147334 (diff)
downloadscummvm-rg350-c1462dda14e45e14f9070047d62f7b26130525b1.tar.gz
scummvm-rg350-c1462dda14e45e14f9070047d62f7b26130525b1.tar.bz2
scummvm-rg350-c1462dda14e45e14f9070047d62f7b26130525b1.zip
Added a safeguard to readBundleFile so it shouldn't corrupt memory even if the input says the data's unpacked size is less than its packed size (This shouldn't ever happen with non-corrupted data).
svn-id: r33782
Diffstat (limited to 'engines/cine/part.h')
-rw-r--r--engines/cine/part.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/part.h b/engines/cine/part.h
index 72dc944db3..a654a1aebc 100644
--- a/engines/cine/part.h
+++ b/engines/cine/part.h
@@ -44,7 +44,7 @@ void closePart(void);
int16 findFileInBundle(const char *fileName);
-void readFromPart(int16 idx, byte *dataPtr);
+void readFromPart(int16 idx, byte *dataPtr, uint32 maxSize);
byte *readBundleFile(int16 foundFileIdx);
byte *readBundleSoundFile(const char *entryName, uint32 *size = 0);