Fix out-of-bounds access in SmallIntegerSet.

This commit is contained in:
Sönke Ludwig 2016-12-10 15:53:59 +01:00
parent 175368b334
commit de89a5a9e1

View file

@ -186,7 +186,7 @@ struct SmallIntegerSet(V : uint)
uint b = 1u << (i%32);
i /= 32;
if (i >= m_bits[j].length)
m_bits[j].length = nextPOT(i);
m_bits[j].length = nextPOT(i+1);
m_bits[j][i] |= b;
}
}