Opened 8 years ago

Closed 8 years ago

#6618 closed defect (fixed)

[2.1.0 regression] HDF4Dataset::AnyTypeToDouble() broken which leads to wrong georeference data and some other metadata from HDF4-EOS datasets

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.1.2
Component: GDAL_Raster Version: 2.1.0
Severity: normal Keywords: hdf4
Cc: Kurt Schwehr

Description

Reported as https://lists.osgeo.org/pipermail/gdal-dev/2016-August/045027.html

Was already fixed in trunk by

------------------------------------------------------------------------
r34320 | dron | 2016-06-02 16:05:47 +0200 (jeu. 02 juin 2016) | 7 lignes

Fixed erroneous type casting in HDF4Dataset::AnyTypeToDouble().

r31400 changed C-style type casting into C++-styled ones but unfortunately
it made wrong pointer dereferencing in HDF4Dataset::AnyTypeToDouble() method
effectively breaking reading georeference data and some other metadata from
HDF4-EOS datasets. This should fix it.

Change History (1)

comment:1 by Even Rouault, 8 years ago

Resolution: fixed
Status: newclosed

In 35036:

Fixed erroneous type casting in HDF4Dataset::AnyTypeToDouble().

r31400 changed C-style type casting into C++-styled ones but unfortunately
it made wrong pointer dereferencing in HDF4Dataset::AnyTypeToDouble() method
effectively breaking reading georeference data and some other metadata from
HDF4-EOS datasets. This should fix it.

Backport of trunk r31400. Fixes #6618

Note: See TracTickets for help on using tickets.