expanding this table by 1 entry to 256 entries total to silence static analysis - in reality, the access can mathematically never go beyond the original size 255 array, but it's best to be safe

This commit is contained in:
Richard Geldreich
2026-03-23 21:01:14 -04:00
parent 08fabab89f
commit 1bdd35aad2

View File

@@ -1,4 +1,4 @@
static const uint8_t g_etc1_mod_tabs[255][8] = {
static const uint8_t g_etc1_mod_tabs[256][8] = {
{0,0,0,0,0,0,0,0,},
{0,0,0,0,0,0,0,0,},
{0,0,0,0,0,0,0,0,},
@@ -253,5 +253,6 @@ static const uint8_t g_etc1_mod_tabs[255][8] = {
{2,5,6,7,7,7,7,7,},
{2,5,6,7,7,7,7,7,},
{2,5,6,7,7,7,7,7,},
{2,5,6,7,7,7,7,7,},
{2,5,6,7,7,7,7,7,}
};