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) {
|
while (n < numberOfSecondOrderPackedValues) {
|
||||||
i += secondaryBitmap[n];
|
i += secondaryBitmap[n];
|
||||||
long fovi = 0;
|
long fovi = 0;
|
||||||
|
// ECC-1703
|
||||||
if ( i >=0 && i < numberOfGroups )
|
if ( i >=0 && i < numberOfGroups )
|
||||||
fovi = firstOrderValues[i];
|
fovi = firstOrderValues[i];
|
||||||
X[n] = fovi + X[n];
|
X[n] = fovi + X[n];
|
||||||
|
|
Loading…
Reference in New Issue