summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/tcd.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-09-01 16:30:35 +0200
committerEven Rouault <even.rouault@spatialys.com>2017-09-01 16:30:35 +0200
commitc37e360a5112b5471168e429159f61b74c0c2f58 (patch)
treeea6fcfb74ace7aff0fb1db88c91ff586b5f21481 /src/lib/openjp2/tcd.c
parenteee5104a8885227167a349b6dabdb1f72a04d9d0 (diff)
opj_tcd_init_tile(): fix typo on overflow detection condition (introduced in previous commit)
Diffstat (limited to 'src/lib/openjp2/tcd.c')
-rw-r--r--src/lib/openjp2/tcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c
index c221c6ed..6758487a 100644
--- a/src/lib/openjp2/tcd.c
+++ b/src/lib/openjp2/tcd.c
@@ -892,7 +892,7 @@ static INLINE OPJ_BOOL opj_tcd_init_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no,
OPJ_UINT32 res_h = (OPJ_UINT32)(l_res->y1 - l_res->y0);
/* issue 733, l_data_size == 0U, probably something wrong should be checked before getting here */
- if (res_h > 0 && res_h > (((OPJ_UINT32) - 1) / res_h)) {
+ if (res_h > 0 && res_w > (((OPJ_UINT32) - 1) / res_h)) {
opj_event_msg(manager, EVT_ERROR, "Not enough memory for tile data\n");
return OPJ_FALSE;
}