ref: 7feea483a0354e13c42ffa239b9b0c2d00f08428
parent: 6f9608495e1f4b1fcac518378a44e8704d943dd7
author: Shailesh Mistry <[email protected]>
date: Sat Jun 23 19:00:47 EDT 2012
Bug 693050 : Fix error handling in 9557 folder
--- a/jbig2_symbol_dict.c
+++ b/jbig2_symbol_dict.c
@@ -966,10 +966,12 @@
if (flags & 0x000c) {
jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
"SDHUFF is zero, but contrary to spec SDHUFFDH is not.");
+ goto cleanup;
}
if (flags & 0x0030) {
jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
"SDHUFF is zero, but contrary to spec SDHUFFDW is not.");
+ goto cleanup;
}
}
@@ -976,6 +978,7 @@
if (flags & 0x0080) {
jbig2_error(ctx, JBIG2_SEVERITY_FATAL, segment->number,
"bitmap coding context is used (NYI) symbol data likely to be garbage!");
+ goto cleanup;
}
/* 7.4.2.1.2 */