[trunk] Revert r2415 for now since it introduce large regression
This commit is contained in:
parent
e260ec6e9d
commit
7dd65e84e6
|
@ -983,11 +983,6 @@ OPJ_BOOL opj_t2_read_packet_header( opj_t2_t* p_t2,
|
|||
do {
|
||||
l_cblk->segs[l_segno].numnewpasses = opj_int_min(l_cblk->segs[l_segno].maxpasses - l_cblk->segs[l_segno].numpasses, n);
|
||||
l_cblk->segs[l_segno].newlen = opj_bio_read(l_bio, l_cblk->numlenbits + opj_uint_floorlog2(l_cblk->segs[l_segno].numnewpasses));
|
||||
/* testcase 1802.pdf.SIGSEGV.36e.894 */
|
||||
if (l_cblk->segs[l_segno].newlen > *l_modified_length_ptr) {
|
||||
opj_bio_destroy(l_bio);
|
||||
return OPJ_FALSE;
|
||||
}
|
||||
|
||||
n -= l_cblk->segs[l_segno].numnewpasses;
|
||||
if (n > 0) {
|
||||
|
@ -1125,7 +1120,6 @@ OPJ_BOOL opj_t2_read_packet_data( opj_t2_t* p_t2,
|
|||
OPJ_BYTE* new_cblk_data = (OPJ_BYTE*) opj_realloc(l_cblk->data, l_cblk->data_current_size + l_seg->newlen);
|
||||
if(! new_cblk_data) {
|
||||
opj_free(l_cblk->data);
|
||||
l_cblk->data = NULL;
|
||||
l_cblk->data_max_size = 0;
|
||||
/* opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to realloc code block cata!\n"); */
|
||||
return OPJ_FALSE;
|
||||
|
|
Loading…
Reference in New Issue