Update t2.c
This commit is contained in:
parent
3eb19736a4
commit
4a7b5aae74
|
@ -1352,11 +1352,19 @@ static OPJ_BOOL opj_t2_read_packet_data(opj_t2_t* p_t2,
|
||||||
if ((((OPJ_SIZE_T)l_current_data + (OPJ_SIZE_T)l_seg->newlen) <
|
if ((((OPJ_SIZE_T)l_current_data + (OPJ_SIZE_T)l_seg->newlen) <
|
||||||
(OPJ_SIZE_T)l_current_data) ||
|
(OPJ_SIZE_T)l_current_data) ||
|
||||||
(l_current_data + l_seg->newlen > p_src_data + p_max_length)) {
|
(l_current_data + l_seg->newlen > p_src_data + p_max_length)) {
|
||||||
opj_event_msg(p_manager, EVT_ERROR,
|
|
||||||
|
opj_event_msg(p_manager, EVT_WARNING,
|
||||||
"read: segment too long (%d) current data (%d) p_src_data (%d) with max (%d) for codeblock %d (p=%d, b=%d, r=%d, c=%d)\n",
|
"read: segment too long (%d) current data (%d) p_src_data (%d) with max (%d) for codeblock %d (p=%d, b=%d, r=%d, c=%d)\n",
|
||||||
l_seg->newlen, l_current_data, p_src_data, p_max_length, cblkno, p_pi->precno, bandno, p_pi->resno,
|
l_seg->newlen, l_current_data, p_src_data, p_max_length, cblkno, p_pi->precno, bandno, p_pi->resno,
|
||||||
p_pi->compno);
|
p_pi->compno);
|
||||||
return OPJ_FALSE;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
//opj_event_msg(p_manager, EVT_ERROR,
|
||||||
|
// "read: segment too long (%d) current data (%d) p_src_data (%d) with max (%d) for codeblock %d (p=%d, b=%d, r=%d, c=%d)\n",
|
||||||
|
// l_seg->newlen, l_current_data, p_src_data, p_max_length, cblkno, p_pi->precno, bandno, p_pi->resno,
|
||||||
|
// p_pi->compno);
|
||||||
|
//return OPJ_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_JPWL
|
#ifdef USE_JPWL
|
||||||
|
|
Loading…
Reference in New Issue