shithub: jbig2

Download patch

ref: 5ae432288a105122d92f490d2d9cf212dae8aab4
parent: 37e002db7ffce8121bd060c86fd9f0609879e99b
author: Ralph Giles <giles@ghostscript.com>
date: Fri May 29 03:25:13 EDT 2009

Initialize the pattern dict data offset to zero before first use.

Warning flagged by Coverity.

--- a/jbig2_halftone.c
+++ b/jbig2_halftone.c
@@ -200,7 +200,7 @@
   Jbig2PatternDictParams params;
   Jbig2ArithCx *GB_stats = NULL;
   byte flags;
-  int offset;
+  int offset = 0;
 
   /* 7.4.4.1 - Data header */
   if (segment->data_length < 7) {