Ticket #1646 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Passing NULL (default) pbSuccess pointer to Get{NoData,Minimum,Maximum}() in HFA band results in segfault

Reported by: rsheykhe Assigned to: warmerdam
Priority: normal Milestone: 1.4.2
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: hfa
Cc:

Description

The default value for pbSuccess parameter to GetNoDataValue?(), GetMaximum?() and getMinimum() functions is NULL. If you leave it as NULL and query an HFA dataset, SEGFAULT from null pointer results. Suggested patch attached.

Attachments

hfadataset.patch (0.7 kB) - added by rsheykhe on 05/18/07 18:30:02.
Proposed patch

Change History

05/18/07 18:30:02 changed by rsheykhe

  • attachment hfadataset.patch added.

Proposed patch

06/07/07 13:14:31 changed by warmerdam

  • keywords set to hfa.
  • component changed from default to GDAL_Raster.
  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 1.4.2.

Patch applied in trunk, 1.4 and 1.4-esri branches.

Thanks!