From 3a4a661448807f42d4b290a0ec7f85a639b3372a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 7 Aug 2008 20:27:51 +0200 Subject: Fix static buffer overrun in fz_gammapixmap (it was the wrong size). --- raster/pixmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3