mirror of https://github.com/ecmwf/eccodes.git
ECC-1703: GRIB: AddressSanitizer: heap-buffer-overflow
This commit is contained in:
parent
7101651b46
commit
fa9f8ea763
|
@ -282,6 +282,7 @@ static int unpack_double(grib_accessor* a, double* values, size_t* len)
|
|||
while (n < numberOfSecondOrderPackedValues) {
|
||||
i += secondaryBitmap[n];
|
||||
long fovi = 0;
|
||||
// ECC-1703
|
||||
if ( i >=0 && i < numberOfGroups )
|
||||
fovi = firstOrderValues[i];
|
||||
X[n] = fovi + X[n];
|
||||
|
|
Loading…
Reference in New Issue