[jbig2-cvs] rev 413 - trunk
giles at ghostscript.com
giles at ghostscript.com
Sun Jun 19 07:16:15 PDT 2005
Author: giles
Date: 2005-06-19 07:16:14 -0700 (Sun, 19 Jun 2005)
New Revision: 413
Modified:
trunk/jbig2_segment.c
Log:
Properly initialize the decode result field of the segment header struct
to NULL to avoid problems on free. Bug 688053.
Modified: trunk/jbig2_segment.c
===================================================================
--- trunk/jbig2_segment.c 2005-06-15 14:09:35 UTC (rev 412)
+++ trunk/jbig2_segment.c 2005-06-19 14:16:14 UTC (rev 413)
@@ -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
@@ -120,6 +120,9 @@
result->data_length = jbig2_get_int32(buf + offset);
*p_header_size = offset + 4;
+ /* no body parsing results yet */
+ result->result = NULL;
+
return result;
}
More information about the jbig2-cvs
mailing list