Ticket #3031 (new defect)

Opened 8 months ago

Last modified 7 months ago

Attempt to read past EOF on AIG Windows VAT table

Reported by: grovduck Assigned to: dmorissette
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: minor Keywords: ReadRAT, EOF, AVC
Cc: matt.gregory@oregonstate.edu, jason.roberts@duke.edu, neteler@osgeo.org

Description

Using svn-trunk on Windows XP with ArcInfo? 9.3 grids. When I try to open grids, I receive this message:

ERROR 3: Attempt to read past EOF in D:/matt/vat_test/grid1/../info/../grid1/vat.adf

when it calls ReadRAT() in aigdataset.cpp. I've tested using two different grids, one with 1280 unique values with VALUE and COUNT fields and then a clip of the first with 398 unique values with VALUE and COUNT. Test 1 gives the error message, test 2 is fine.

As in ticket #2447, the attribute data actually reads in correctly, so this is more of an annoyance than a major issue.

Test grids are at: ftp://ftp.fsl.orst.edu/pub/gregorym/vat_test.zip (53.4 MB)

Change History

06/19/09 14:14:10 changed by rouault

  • keywords changed from ReadRAT, EOF to ReadRAT, EOF, AVC.
  • owner changed from warmerdam to dmorissette.

Assigning to Daniel. The error is issued by the AVC driver

07/19/09 13:16:14 changed by neteler

See also trac #2447

07/22/09 13:35:11 changed by rouault

  • cc set to matt.gregory@oregonstate.edu, jason.roberts@duke.edu, neteler@osgeo.org.

Daniel,

I've pushed in trunk (r17430) and branches/1.6 (r17431) a workaround to enable users to open those datasets that trigger the error with binding languages. Open() in swig/include/gdal.i checks that there is no failure returned by CPLGetLastErrorType() even if the dataset is not NULL. I've tried to look a bit at why the error was issued in the AVC driver but it didn't seem obvious how to fix that without knowledge of the format.

07/22/09 13:53:59 changed by rouault

r17432 (trunk only) : differ opening of the RAT only when GetDefaultRat?() is called. Will improve performances and make less likely the error message of #3031

07/23/09 18:26:57 changed by grovduck

Changed location of test grids to: ftp://ftp.fsl.orst.edu/pub/gregorym/gdal/vat_test.zip