Skip to content

Commit

Permalink
Fix null pointer dereference in opj_j2k_add_mct() (#895)
Browse files Browse the repository at this point in the history
Fixes openjeg-crashes-2017-07-27/issue879-poc1.j2k of #895
  • Loading branch information
rouault committed Jul 28, 2017
1 parent c5bf5ef commit 16aeb92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/openjp2/j2k.c
Expand Up @@ -5584,6 +5584,7 @@ static OPJ_BOOL opj_j2k_read_mct(opj_j2k_t *p_j2k,
if (l_mct_data->m_data) {
opj_free(l_mct_data->m_data);
l_mct_data->m_data = 00;
l_mct_data->m_data_size = 0;
}

l_mct_data->m_index = l_indix;
Expand Down

0 comments on commit 16aeb92

Please sign in to comment.