aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThomas Fach-Pedersen2016-10-24 19:11:48 +0200
committerThomas Fach-Pedersen2016-10-24 19:40:18 +0200
commit4b6e0f0e7d68e61b5870431d3aded6f7950f2282 (patch)
tree0a6adfd9aebee29b3860d48530301aebbb46d415 /engines
parentc64767b202f9264447829ac827fc5207c36d8978 (diff)
downloadscummvm-rg350-4b6e0f0e7d68e61b5870431d3aded6f7950f2282.tar.gz
scummvm-rg350-4b6e0f0e7d68e61b5870431d3aded6f7950f2282.tar.bz2
scummvm-rg350-4b6e0f0e7d68e61b5870431d3aded6f7950f2282.zip
BLADERUNNER: Fix out-of-bounds read (CID 1364207)
Diffstat (limited to 'engines')
-rw-r--r--engines/bladerunner/suspects_database.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/bladerunner/suspects_database.h b/engines/bladerunner/suspects_database.h
index 83e551b1a1..472e340474 100644
--- a/engines/bladerunner/suspects_database.h
+++ b/engines/bladerunner/suspects_database.h
@@ -35,7 +35,7 @@ class TextResource;
#define NONREPLICANT_CLUES_COUNT 20
#define OTHER_CLUES_COUNT 20
#define IDENTITY_CLUES_COUNT 10
-#define PHOTO_CLUES_COUNT 10
+#define PHOTO_CLUES_COUNT 6
class SuspectDatabaseEntry {
BladeRunnerEngine *_vm;
@@ -48,7 +48,7 @@ class SuspectDatabaseEntry {
int _nonReplicantClues[NONREPLICANT_CLUES_COUNT];
int _otherClues[OTHER_CLUES_COUNT];
int _identityClues[IDENTITY_CLUES_COUNT];
- int _photoClues[6][3];
+ int _photoClues[PHOTO_CLUES_COUNT][3];
int _moCluesCount;
int _whereaboutsCluesCount;
int _replicantCluesCount;