diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-27 11:35:19 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-27 20:04:00 +0800 |
commit | 2eaa779a1cac30dc1a909a850bfac78be14d907c (patch) | |
tree | 734bedfba0906135bc08375b8f2232f97976a5dd /source | |
parent | 3dd90d46498cb50122de97960378a2f4e081fbb0 (diff) | |
download | mupdf-2eaa779a1cac30dc1a909a850bfac78be14d907c.tar.xz |
Bug 697160: gif: Transparency index must be inside color table.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/load-gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-gif.c b/source/fitz/load-gif.c index 3d8a7354..0eda5bcb 100644 --- a/source/fitz/load-gif.c +++ b/source/fitz/load-gif.c @@ -146,7 +146,7 @@ gif_read_lsd(fz_context *ctx, struct info *info, unsigned char *p, unsigned char if (info->has_gct) { info->gct_entries = 1 << ((p[4] & 0x7) + 1); - info->gct_background = p[5]; + info->gct_background = fz_clampi(p[5], 0, info->gct_entries - 1); } info->aspect = p[6]; |