Ticket #1646 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

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

Reported by: rsheykhe Owned by: 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 Download (0.7 KB) - added by rsheykhe 6 years ago.
Proposed patch

Change History

Changed 6 years ago by rsheykhe

Proposed patch

Changed 6 years ago by warmerdam

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

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

Thanks!

Note: See TracTickets for help on using tickets.