[trunk] WIP: correct a segfault inside j2k_dump output

This commit is contained in:
Mickael Savinaud 2011-10-11 13:49:58 +00:00
parent acd4cc6f5c
commit ca5b10938a
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ What's New for OpenJPEG
+ : added
October 11, 2011
* [mickael] WIP: correct a segfault inside j2k_dump output
* [mickael] WIP: correct some segfault with win platform and remove a aligned allocation which produce error when a realloc is done on this pointer.
* [mickael] WIP: add stream length value to read unknown marker size, backport 855 into V2 framework, correct memory leak into get_cstr_info
* [mickael] WIP: add output elements about decoding of jp2 files with last tile part lenght equal zero

View File

@ -6784,8 +6784,8 @@ opj_codestream_info_v2_t* j2k_get_cstr_info(opj_j2k_v2_t* p_j2k)
l_tccp_info->qmfbid = l_tccp->qmfbid;
if (l_tccp->numresolutions < J2K_MAXRLVLS)
{
memcpy(l_tccp_info->prch, l_tccp->prch, l_tccp->numresolutions - 1);
memcpy(l_tccp_info->prcw, l_tccp->prcw, l_tccp->numresolutions - 1);
memcpy(l_tccp_info->prch, l_tccp->prch, l_tccp->numresolutions);
memcpy(l_tccp_info->prcw, l_tccp->prcw, l_tccp->numresolutions);
}
/* quantization style*/