aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/lol.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-10-25 23:11:13 +0200
committerWillem Jan Palenstijn2016-10-25 23:13:22 +0200
commitb4515d087257e1ab27712dc1bffece3f1cd39391 (patch)
tree8d94107680250d9e77fd861266c610f9ef8514d6 /engines/kyra/lol.h
parent97bc65e82f0f9efeb07d84a876ee2fd7f9b24780 (diff)
downloadscummvm-rg350-b4515d087257e1ab27712dc1bffece3f1cd39391.tar.gz
scummvm-rg350-b4515d087257e1ab27712dc1bffece3f1cd39391.tar.bz2
scummvm-rg350-b4515d087257e1ab27712dc1bffece3f1cd39391.zip
KYRA: (LOL) Fix buffer overflow in _lastOverridePalFile
It was storing filenames of length 12 in a char[12] buffer. Fixes bug #9627.
Diffstat (limited to 'engines/kyra/lol.h')
-rw-r--r--engines/kyra/lol.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/kyra/lol.h b/engines/kyra/lol.h
index af58397200..9f952e5df6 100644
--- a/engines/kyra/lol.h
+++ b/engines/kyra/lol.h
@@ -987,8 +987,7 @@ private:
uint16 _specialGuiShapeY;
uint16 _specialGuiShapeMirrorFlag;
- char _lastOverridePalFile[12];
- char *_lastOverridePalFilePtr;
+ Common::String _lastOverridePalFile;
int _lastSpecialColor;
int _lastSpecialColorWeight;