Skip to content

Resource leak in opj_j2k_encode in case of failure #598

@mayeut

Description

@mayeut
/* now copy this data into the tile component */
if (! opj_tcd_copy_tile_data(p_j2k->m_tcd,l_current_data,l_current_tile_size)) {
  opj_event_msg(p_manager, EVT_ERROR, "Size mismatch between tile data and sent data." );
  return OPJ_FALSE;
}

and

if (! opj_j2k_post_write_tile (p_j2k,p_stream,p_manager)) {
  return OPJ_FALSE;
}

l_current_data is not freed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions