[trunk] Make sure to reject images such as 1336.pdf.asan.47.376.jp2

Fixes issue 267
This commit is contained in:
Mathieu Malaterre 2014-03-04 10:32:26 +00:00
parent 07193e2a34
commit 1ef677f264
1 changed files with 1 additions and 0 deletions

View File

@ -1583,6 +1583,7 @@ OPJ_BOOL opj_tcd_mct_decode ( opj_tcd_t *p_tcd )
(l_tile->comps[1].x1 - l_tile->comps[1].x0) * (l_tile->comps[1].y1 - l_tile->comps[1].y0) < (OPJ_INT32)l_samples ||
(l_tile->comps[2].x1 - l_tile->comps[2].x0) * (l_tile->comps[2].y1 - l_tile->comps[2].y0) < (OPJ_INT32)l_samples) {
fprintf(stderr, "Tiles don't all have the same dimension. Skip the MCT step.\n");
return OPJ_FALSE;
}
else if (l_tcp->mct == 2) {
OPJ_BYTE ** l_data;