diff options
author | Tor Andersson <tor@ghostscript.com> | 2008-08-07 20:27:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2008-08-07 20:27:51 +0200 |
commit | 3a4a661448807f42d4b290a0ec7f85a639b3372a (patch) | |
tree | 329e2134e7b3aaa512b4da00d5d10ab68f91049b /raster | |
parent | 5d1696ccf1f1788bd7bd2970344ef6b078448821 (diff) | |
download | mupdf-3a4a661448807f42d4b290a0ec7f85a639b3372a.tar.xz |
Fix static buffer overrun in fz_gammapixmap (it was the wrong size).
Diffstat (limited to 'raster')
-rw-r--r-- | raster/pixmap.c | 2 |
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; |