[trunk] Now that issue 165 dataset is in non regression repository, activate code to reject them

Fixes issue 165
This commit is contained in:
Mathieu Malaterre
2014-03-14 15:01:13 +00:00
parent de74605777
commit 7e1d012161
3 changed files with 8 additions and 0 deletions

View File

@@ -3163,6 +3163,11 @@ static OPJ_BOOL opj_j2k_read_poc ( opj_j2k_t *p_j2k,
l_old_poc_nb = l_tcp->POC ? l_tcp->numpocs + 1 : 0;
l_current_poc_nb += l_old_poc_nb;
if(l_current_poc_nb >= 32)
{
opj_event_msg(p_manager, EVT_ERROR, "Too many POCs %d\n", l_current_poc_nb);
return OPJ_FALSE;
}
assert(l_current_poc_nb < 32);
/* now poc is in use.*/