Opened 12 years ago

Closed 12 years ago

#4867 closed defect (fixed)

Fix error calculating size of string attribute column in HFA

Reported by: Sam Gillingham Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: 1.9.2
Severity: normal Keywords: HFA
Cc:

Description

Attached patch addresses problem where size required for string column was being calculated incorrectly (strlen does not include terminating null byte). This could result in segfaults when string column was empty.

Attachments (1)

hfadataset.cpp.nullratstr.1.9.2.patch (887 bytes ) - added by Sam Gillingham 12 years ago.
patch to hfadataset.cpp to address problem

Download all attachments as: .zip

Change History (2)

by Sam Gillingham, 12 years ago

patch to hfadataset.cpp to address problem

comment:1 by warmerdam, 12 years ago

Resolution: fixed
Status: newclosed

Patch applied in trunk (r25140) and 1.9 branch (r25141).

Thanks Sam!

Note: See TracTickets for help on using tickets.