diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-04 10:32:26 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2014-03-04 10:32:26 +0000 |
| commit | 1ef677f2648c2fc424183f38225ce1fa4bf390c9 (patch) | |
| tree | 6d85a6cb28b95ce7425a11ef0c3a0d9f8d0b7d21 /src | |
| parent | 07193e2a34aaf11d18ffe87877be3af536a3fec6 (diff) | |
[trunk] Make sure to reject images such as 1336.pdf.asan.47.376.jp2
Fixes issue 267
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/openjp2/tcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c index a1672fc3..e0752724 100644 --- a/src/lib/openjp2/tcd.c +++ b/src/lib/openjp2/tcd.c @@ -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; |
