Opened 13 years ago

Closed 13 years ago

#1646 closed defect (fixed)

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


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 (1)

hfadataset.patch (750 bytes) - added by rsheykhe 13 years ago.
Proposed patch

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by rsheykhe

Attachment: hfadataset.patch added

Proposed patch

comment:1 Changed 13 years ago by warmerdam

Component: defaultGDAL_Raster
Keywords: hfa added
Milestone: 1.4.2
Resolution: fixed
Status: newclosed

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


Note: See TracTickets for help on using tickets.