]> Creatis software - gdcm.git/blobdiff - src/jpeg/libijg12/jdmarker12.c
A few nasty patches to allow the reading of a lot of nasty images
[gdcm.git] / src / jpeg / libijg12 / jdmarker12.c
index 86f3a0ecba4fec47a09b7e8705993971e8bd468c..6c6309f4070c14271b31078ec12528e501554339 100644 (file)
@@ -453,9 +453,10 @@ get_dht (j_decompress_ptr cinfo)
     /* Here we just do minimal validation of the counts to avoid walking
      * off the end of our table space.  jdhuff.c will check more carefully.
      */
-    if (count > 256 || ((INT32) count) > length)
+    if (count > 256 || ((INT32) count) > length) {
+      printf("JERR_BAD_HUFF_TABLE in jdmarker12.c count : %d\n",count);
       ERREXIT(cinfo, JERR_BAD_HUFF_TABLE);
-
+    }
     for (i = 0; i < count; i++)
       INPUT_BYTE(cinfo, huffval[i], return FALSE);