projects
/
openjpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eee5104
)
opj_tcd_init_tile(): fix typo on overflow detection condition (introduced in previous...
author
Even Rouault
<even.rouault@spatialys.com>
Fri, 1 Sep 2017 14:30:35 +0000
(16:30 +0200)
committer
Even Rouault
<even.rouault@spatialys.com>
Fri, 1 Sep 2017 14:30:35 +0000
(16:30 +0200)
src/lib/openjp2/tcd.c
patch
|
blob
|
history
diff --git
a/src/lib/openjp2/tcd.c
b/src/lib/openjp2/tcd.c
index c221c6ed4fc35898d9e97c8b5eb537eaaa23d5cc..6758487a1ee6a78268d4ccb5b29f837f560792e9 100644
(file)
--- 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;
}