shithub: jbig2

Download patch

ref: 5885ff7ba373bc00d47064617a8c8a9c0d5d30ec
parent: dcf7801f015dbbb44c82b57167e57207765abff3
author: Robin Watts <robin.watts@artifex.com>
date: Mon Dec 16 06:45:42 EST 2013

Revert "Bug 694124: Shailesh Mistry's patch for valgrind problems."

This reverts commit d166833eb541466104c582980be1e42e0062c738.

--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -1049,19 +1049,9 @@
   params.SDNUMNEWSYMS = jbig2_get_uint32(segment_data + offset + 4);
   offset += 8;
 
-  if (params.SDNUMEXSYMS == 0 || params.SDNUMNEWSYMS == 0)
-  {
-    jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
-      "empty symbol dictionary, flags=%04x, %u exported syms, %u new syms",
-      flags, params.SDNUMEXSYMS, params.SDNUMNEWSYMS);
-    goto cleanup;
-  }
-  else
-  {
-    jbig2_error(ctx, JBIG2_SEVERITY_INFO, segment->number,
-      "symbol dictionary, flags=%04x, %u exported syms, %u new syms",
-      flags, params.SDNUMEXSYMS, params.SDNUMNEWSYMS);
-  }
+  jbig2_error(ctx, JBIG2_SEVERITY_INFO, segment->number,
+	      "symbol dictionary, flags=%04x, %u exported syms, %u new syms",
+	      flags, params.SDNUMEXSYMS, params.SDNUMNEWSYMS);
 
   /* 7.4.2.2 (2) */
   {