Pārlūkot izejas kodu

fix reading outside buffer

tags/v0.0.1
Leon pirms 5 gadiem
vecāks
revīzija
7b9e254a8b
1 mainītis faili ar 2 papildinājumiem un 4 dzēšanām
  1. +2
    -4
      crypto_kem/ledakemlt12/clean/dfr_test.c

+ 2
- 4
crypto_kem/ledakemlt12/clean/dfr_test.c Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt