shithub: jbig2

Download patch

ref: 1eb7ae738d7af4508d7cbc547c0e386d55821820
parent: 84de63772c46a85128b6ada79cd2203918c7dec2
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Sun Jun 19 10:16:14 EDT 2005

Properly initialize the decode result field of the segment header struct 
to NULL to avoid problems on free. Bug 688053.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@413 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -1,7 +1,7 @@
 /*
     jbig2dec
     
-    Copyright (c) 2002-2003 artofcode LLC.
+    Copyright (c) 2002-2005 artofcode LLC.
     
     This software is distributed under license and may not
     be copied, modified or distributed except as expressly
@@ -119,6 +119,9 @@
   /* 7.2.7 */
   result->data_length = jbig2_get_int32(buf + offset);
   *p_header_size = offset + 4;
+
+  /* no body parsing results yet */
+  result->result = NULL;
 
   return result;
 }