From 17d4efed6a9140d072e7e497132b96dd37f73eca Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 27 Feb 2018 14:56:45 +0100 Subject: Fix 699076: Scoping bug in png_write_band. --- source/fitz/output-png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz') diff --git a/source/fitz/output-png.c b/source/fitz/output-png.c index 15fb41f0..83490951 100644 --- a/source/fitz/output-png.c +++ b/source/fitz/output-png.c @@ -219,10 +219,10 @@ png_write_band(fz_context *ctx, fz_band_writer *writer_, int stride, int band_st /* Unpremultiply data */ for (y = 0; y < band_height; y++) { + int prev[FZ_MAX_COLORS]; *dp++ = 1; /* sub prediction filter */ for (x = 0; x < w; x++) { - int prev[FZ_MAX_COLORS]; int a = sp[n-1]; int inva = a ? 256*255/a : 0; int p; -- cgit v1.2.3