projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07193e2
)
[trunk] Make sure to reject images such as 1336.pdf.asan.47.376.jp2
author
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Tue, 4 Mar 2014 10:32:26 +0000
(10:32 +0000)
committer
Mathieu Malaterre
<mathieu.malaterre@gmail.com>
Tue, 4 Mar 2014 10:32:26 +0000
(10:32 +0000)
Fixes issue 267
src/lib/openjp2/tcd.c
patch
|
blob
|
history
diff --git
a/src/lib/openjp2/tcd.c
b/src/lib/openjp2/tcd.c
index a1672fc36c7b6b1050b79ce7d9b8237219c7f94a..e0752724206d13e5b94d0ae141fdb91c1af54ca4 100644
(file)
--- 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;