summaryrefslogtreecommitdiff
path: root/raster
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2008-08-07 20:27:51 +0200
committerTor Andersson <tor@ghostscript.com>2008-08-07 20:27:51 +0200
commit3a4a661448807f42d4b290a0ec7f85a639b3372a (patch)
tree329e2134e7b3aaa512b4da00d5d10ab68f91049b /raster
parent5d1696ccf1f1788bd7bd2970344ef6b078448821 (diff)
downloadmupdf-3a4a661448807f42d4b290a0ec7f85a639b3372a.tar.xz
Fix static buffer overrun in fz_gammapixmap (it was the wrong size).
Diffstat (limited to 'raster')
-rw-r--r--raster/pixmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/raster/pixmap.c b/raster/pixmap.c
index 0e614428..b0a65704 100644
--- a/raster/pixmap.c
+++ b/raster/pixmap.c
@@ -62,7 +62,7 @@ fz_clearpixmap(fz_pixmap *pix)
void
fz_gammapixmap(fz_pixmap *pix, float gamma)
{
- unsigned char table[255];
+ unsigned char table[256];
int n = pix->w * pix->h * pix->n;
unsigned char *p = pix->samples;
int i;