rev 413 - trunk
[email protected] Sun, 19 Jun 2005 07:16:15 -0700 (PDT)
| Newsgroups | gmane.comp.printing.ghostscript.jbig2dec.cvs |
|---|---|
| Message-ID | <[email protected]> |
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=20
to NULL to avoid problems on free. Bug 688053.
Modified: trunk/jbig2_segment.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- 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
=20
- Copyright (c) 2002-2003 artofcode LLC.
+ Copyright (c) 2002-2005 artofcode LLC.
=20
This software is distributed under license and may not
be copied, modified or distributed except as expressly
@@ -120,6 +120,9 @@
result->data_length =3D jbig2_get_int32(buf + offset);
*p_header_size =3D offset + 4;
=20
+ /* no body parsing results yet */
+ result->result =3D NULL;
+
return result;
}
=20