Opened 17 years ago

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

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

Download all attachments as: .zip

Change History (2)

by rsheykhe, 17 years ago

Attachment: hfadataset.patch added

Proposed patch

comment:1 by warmerdam, 17 years ago

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.

Thanks!

Note: See TracTickets for help on using tickets.