Fix off-by-one error

The value of p after adding the last entry in the gap table is not used.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2023-08-22 11:06:47 +02:00
parent b2bc1712a5
commit 30b0378008

View file

@ -2194,6 +2194,7 @@ static const unsigned char small_prime_gaps[] = {
14, 4, 2, 4, 14, 4, 2, 4, 14, 4, 2, 4, 14, 4, 2, 4,
20, 4, 8, 10, 8, 4, 6, 6, 20, 4, 8, 10, 8, 4, 6, 6,
14, 4, 6, 6, 8, 6, /*reaches 997*/ 14, 4, 6, 6, 8, 6, /*reaches 997*/
0 /* the last entry is effectively unused */
}; };
/* /*