fix reading outside buffer

This commit is contained in:
Leon 2019-05-27 20:21:05 +02:00
父節點 a7b3aa73b2
當前提交 7b9e254a8b

查看文件

@ -57,11 +57,9 @@ int PQCLEAN_LEDAKEMLT12_CLEAN_DFR_test(POSITION_T LSparse[N0][DV * M]) {
intersectionval++;
firstidx++;
secondidx++;
}
if ( LSparse_loc[i][firstidx] > rotated_column[secondidx] ) {
} else if ( LSparse_loc[i][firstidx] > rotated_column[secondidx] ) {
secondidx++;
}
if ( LSparse_loc[i][firstidx] < rotated_column[secondidx] ) {
} else { /*if ( LSparse_loc[i][firstidx] < rotated_column[secondidx] ) */
firstidx++;
}
}