Skip to content

Commit 423cdf2

Browse files
committed
fix two out-of-bounds accesses in tune8dbs.c
1 parent af1f33c commit 423cdf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tune8dbs.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ void pattern_setup( void ) {
11461146
int pos;
11471147
int pattern, mirror_pattern;
11481148
int power3;
1149-
int flip8[6561], flip5[81], flip3[27];
1149+
int flip8[6561], flip5[243], flip3[27];
11501150
int row[10];
11511151

11521152
/* The inverse patterns */
@@ -1887,7 +1887,7 @@ int main(int argc, char *argv[]) {
18871887
if ( USE_PARITY )
18881888
parity.gradient = 0.0;
18891889
if ( USE_A_FILE2X )
1890-
for ( i = 0; i < 59059; i++ )
1890+
for ( i = 0; i < 59049; i++ )
18911891
afile2x[i].gradient = 0.0;
18921892
if ( USE_CORNER52 )
18931893
for ( i = 0; i < 59049; i++ )

0 commit comments

Comments
 (0)