Skip to content

MSGN driver gets a core-dump when tries to read the HRV subset of a MSG native product #1040

@mdbmdb74

Description

@mdbmdb74

Expected behavior and actual behavior.

I get a core-dump error when I try to read the HRV subset of a MSG native product. gdalinfo does not show the presence of the subset "HRV" but it works correclty when I executes "gdalinfo <msg_filename>" or "gdalinfo HRV:<msg_filename>". But when I try to read or use the HRV band values, for example using the option "-stats" of gdalinfo or by means of the API python of GDAL, I got the following error:

double free or corruption (out)
Aborted (core dumped)

I have tested this error using several input MSG file downloaded from the EUMETSAT DataCentre (e.g.:
MSG1-SEVI-MSG15-0100-NA-20180204115740.385000000Z-20180204115757-1263424.nat, MSG3-SEVI-MSG15-0100-NA-20170907001239.872000000Z-20170907001255-1241372.nat, etc.)

When I operates on the other bands of the same product, GDAL works perfectly.

Steps to reproduce the problem.

gdalinfo --stats HRV:<msg_filename>

Operating system

Ubuntu 18.04 64 bit (I get the same error on Ubuntu 16.04)

GDAL version and provenance

the 2.2.3 version from gdal source package in Bionic (I get the same error using GDAL 2.3.1, GDAL 2.3.2)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions