X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2Fjpeg%2Flibijg12%2Fjdmarker12.c;h=6c6309f4070c14271b31078ec12528e501554339;hb=59b7e8c61d23c966e15301514b498695f29577f7;hp=86f3a0ecba4fec47a09b7e8705993971e8bd468c;hpb=de0306fc7eb3c521ddc9aaac1496a8d4ce1477cb;p=gdcm.git diff --git a/src/jpeg/libijg12/jdmarker12.c b/src/jpeg/libijg12/jdmarker12.c index 86f3a0ec..6c6309f4 100644 --- a/src/jpeg/libijg12/jdmarker12.c +++ b/src/jpeg/libijg12/jdmarker12.c @@ -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);