avoid a harmless out of bounds read
in UCS table building
This commit is contained in:
parent
f135a6e292
commit
57d1d86885
@ -127,7 +127,7 @@ make_hI( void )
|
||||
for( i = 0; i < 361; i++ ) {
|
||||
int k;
|
||||
|
||||
for( k = 0; k < 360 && hl[j][k] <= i; k++ )
|
||||
for( k = 1; k < 360 && hl[j][k] <= i; k++ )
|
||||
;
|
||||
|
||||
hI[j][i] = k - 1 + (i - hl[j][k - 1]) /
|
||||
|
Loading…
Reference in New Issue
Block a user