Add paranoid sentinels

This commit is contained in:
Mathieu Malaterre 2015-10-10 18:38:08 +02:00
parent d753441028
commit dc869c2985
1 changed files with 4 additions and 0 deletions

View File

@ -81,6 +81,10 @@ void opj_mct_encode(
{
OPJ_SIZE_T i;
const OPJ_SIZE_T len = n;
/* buffer are aligned on 16 bytes */
assert( (uintptr_t)c0 & 16 == 0 );
assert( (uintptr_t)c1 & 16 == 0 );
assert( (uintptr_t)c2 & 16 == 0 );
for(i = 0; i < (len & ~3U); i += 4) {
__m128i y, u, v;