From 12f10a22643a0973422b3cb0ecfc2f5bd1428346 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 31 May 2016 13:25:51 +0200 Subject: IMAGE: Fix out of bounds access --- image/codecs/cinepak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'image') diff --git a/image/codecs/cinepak.cpp b/image/codecs/cinepak.cpp index 4e858921ee..2b02fc8127 100644 --- a/image/codecs/cinepak.cpp +++ b/image/codecs/cinepak.cpp @@ -260,7 +260,7 @@ private: } static inline byte getRGBLookupEntry(const byte *colorMap, uint16 index) { - return colorMap[s_defaultPaletteLookup[CLIP(index, 0, 1024)]]; + return colorMap[s_defaultPaletteLookup[CLIP(index, 0, 1023)]]; } }; -- cgit v1.2.3