diff options
author | yenatch <yenatch@gmail.com> | 2013-05-18 03:26:06 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-05-18 04:46:52 -0400 |
commit | 829fa1d626beca49d78725ad719309808cc866dc (patch) | |
tree | e8fb9242935e1facbe39923d649b71b9ea4fd68a /gfx.py | |
parent | e4cf93bff1cde766b1298235969725c1c9628b7f (diff) |
gfx: safer alternating-byte detection in compression
original-commit-id: e3565bd7007b194b04ceecaf1909fff65062211f
Diffstat (limited to 'gfx.py')
-rw-r--r-- | gfx.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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])) |