rg_etc: check against meaningful size (pointer size is not)

CID 1195440.
This commit is contained in:
Cedric Bail 2014-04-17 21:26:57 +02:00
parent b1729b0754
commit b5c276a659
1 changed files with 1 additions and 1 deletions

View File

@ -1267,7 +1267,7 @@ rg_etc1_indirect_radix_sort(unsigned int num_indices, unsigned int pIndices0[8],
unsigned int pass;
// ERROR CASE NO ASSERT IN EVAS CODE
if (!(key_ofs < sizeof(pIndices0))) return NULL;
if (!(key_ofs < sizeof(unsigned int) * 8)) return NULL;
if (!((key_size >= 1) && (key_size <= 4))) return NULL;
if (init_indices)