[gs-cvs] rev 7958 - in trunk/gs: src toolbin
alexcher at ghostscript.com
alexcher at ghostscript.com
Sat May 12 07:55:02 PDT 2007
Author: alexcher
Date: 2007-05-12 07:55:02 -0700 (Sat, 12 May 2007)
New Revision: 7958
Modified:
trunk/gs/src/sjpx.c
trunk/gs/toolbin/vg_bugs.supp
Log:
Fully initialize stream_jpxd_state structure to avoid Valgrind warnings and
bogus results when the state is printed on error. Bug 688877.
DIFFERENCES:
None
Modified: trunk/gs/src/sjpx.c
===================================================================
--- trunk/gs/src/sjpx.c 2007-05-12 10:05:30 UTC (rev 7957)
+++ trunk/gs/src/sjpx.c 2007-05-12 14:55:02 UTC (rev 7958)
@@ -22,6 +22,8 @@
#include "gsmalloc.h"
#include "sjpx.h"
+private void s_jpxd_set_defaults(stream_state *ss);
+
/* stream implementation */
/* As with the /JBIG2Decode filter, we let the library do its own
@@ -50,12 +52,7 @@
stream_jpxd_state *const state = (stream_jpxd_state *) ss;
int status = 0;
- state->buffer = NULL;
- state->bufsize = 0;
- state->buffill = 0;
- state->stream = NULL;
- state->image = NULL;
- state->offset = 0;
+ s_jpxd_set_defaults(ss);
state->jpx_memory = ss->memory ? ss->memory->non_gc_memory : gs_lib_ctx_get_non_gc_memory_t();
status = jas_init();
Modified: trunk/gs/toolbin/vg_bugs.supp
===================================================================
--- trunk/gs/toolbin/vg_bugs.supp 2007-05-12 10:05:30 UTC (rev 7957)
+++ trunk/gs/toolbin/vg_bugs.supp 2007-05-12 14:55:02 UTC (rev 7958)
@@ -149,14 +149,3 @@
fun:shade_next_coords
fun:put_float_mesh_data
}
-
-# Jbig2 error reporting
-# pdfwrite - 2page-output.jbig2.pdf
-{
- <bug 688877>
- Memcheck:Cond
- fun:vfprintf
- fun:vsnprintf
- fun:jbig2_error
- fun:jbig2_decode_refinement_region
-}
More information about the gs-cvs
mailing list