summaryrefslogtreecommitdiff
path: root/extras/gfx.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2013-05-18 03:26:06 -0400
committeryenatch <yenatch@gmail.com>2013-05-18 04:46:52 -0400
commite3565bd7007b194b04ceecaf1909fff65062211f (patch)
treeb64db10fc4ea89c82645f373f7e6ecf8088ea313 /extras/gfx.py
parentb5e0efc1182db878085f5d5bff99a0c7d94f88aa (diff)
gfx: safer alternating-byte detection in compression
Diffstat (limited to 'extras/gfx.py')
-rw-r--r--extras/gfx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/gfx.py b/extras/gfx.py
index 8898f77cf..54cd04c5b 100644
--- a/extras/gfx.py
+++ b/extras/gfx.py
@@ -467,7 +467,7 @@ class Compressed:
num_alts = 0
# make sure we don't check for alts at the end of the file
- if self.address+2 >= self.end: return False
+ if self.address+3 >= self.end: return False
self.alts.append(self.byte)
self.alts.append(ord(self.image[self.address+1]))