Browse Source

fix reading outside buffer

tags/v0.0.1
Leon 5 years ago
parent
commit
7b9e254a8b
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      crypto_kem/ledakemlt12/clean/dfr_test.c

+ 2
- 4
crypto_kem/ledakemlt12/clean/dfr_test.c View File

@@ -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++;
}
}


Loading…
Cancel
Save