summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@free.fr>2014-04-17 21:26:57 +0200
committerCedric Bail <cedric.bail@free.fr>2014-04-17 21:26:57 +0200
commitb5c276a659b417324dadfb11806e35e41eb1fa34 (patch)
tree526a14608b09a23ac0a026d39179937a72c92bb8
parentb1729b0754eb31bd6ec104ce0e49eb618f328ace (diff)
rg_etc: check against meaningful size (pointer size is not)
CID 1195440.
-rw-r--r--src/static_libs/rg_etc/rg_etc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static_libs/rg_etc/rg_etc1.c b/src/static_libs/rg_etc/rg_etc1.c
index ff8af91..a74b1f1 100644
--- a/src/static_libs/rg_etc/rg_etc1.c
+++ b/src/static_libs/rg_etc/rg_etc1.c
@@ -1267,7 +1267,7 @@ rg_etc1_indirect_radix_sort(unsigned int num_indices, unsigned int pIndices0[8],
1267 unsigned int pass; 1267 unsigned int pass;
1268 1268
1269 // ERROR CASE NO ASSERT IN EVAS CODE 1269 // ERROR CASE NO ASSERT IN EVAS CODE
1270 if (!(key_ofs < sizeof(pIndices0))) return NULL; 1270 if (!(key_ofs < sizeof(unsigned int) * 8)) return NULL;
1271 if (!((key_size >= 1) && (key_size <= 4))) return NULL; 1271 if (!((key_size >= 1) && (key_size <= 4))) return NULL;
1272 1272
1273 if (init_indices) 1273 if (init_indices)