Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#3730 closed defect (fixed)

segmentation fault in gdalinfo because of hard coded array length in hdf5dataset.

Reported by: chaitanya Owned by: chaitanya
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: hdf5
Cc: warmerdam

Description

gdalinfo was core dumping in method HDF5AttrIterate on some hdf5 data we have. The value of nAttrSize was greater than the hard coded array length of 8192. I changed the array size to be dynamic and it seems to be working now on my small sample of two data sets.

  • David Burken

Attachments (1)

3730.diff (736 bytes ) - added by chaitanya 14 years ago.
Patch from Dave

Download all attachments as: .zip

Change History (4)

by chaitanya, 14 years ago

Attachment: 3730.diff added

Patch from Dave

comment:1 by dburken, 14 years ago

File that replicates problem located at:

ftp://acdisc.gsfc.nasa.gov/data/s4pa///Aura_MLS_Level2/ML2GPH.001//2007/MLS-Aura_L2GP-GPH_v01-52-c01_2007d059.he5

comment:2 by chaitanya, 14 years ago

Milestone: 1.6.4
Resolution: fixed
Status: newclosed

I added some code to look for overflows in arrays. Fixed in trunk (r20437), 1.7 branch (r20438) and 1.6 branch (r20439).

comment:3 by Even Rouault, 11 years ago

Milestone: 1.6.4

Milestone 1.6.4 deleted

Note: See TracTickets for help on using tickets.