Opened 11 years ago

Closed 11 years ago

#3076 closed defect (fixed)

RasterIO reporting corrupt blocks on AIG datasets

Reported by: grovduck Owned by: Even Rouault
Priority: normal Milestone: 1.7.0
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: AIG RasterIO IReadBlock corrupt


When I do a simple RasterIO read over various ArcInfo? grids (using the AIG driver), I am getting sporadic "Corrupt block" errors from line 636 in gridlib.c (r17432) on grids that I think should be fine. This relevant chunk of code in gridlib.c is this:

/* The 4 is to be safe... In theory for a very small block (2x2 or 
 less), and nMinSize < 4, nDataSize could be smaller... */ 

if (nDataSize <  2 + 4) {
  CPLError( CE_Failure, CPLE_AppDefined, "Corrupt block");
  CPLFree( pabyRaw );
  return CE_Failure;

I'm erroring out with nDataSize of 4. I've posted a sample dataset which gives this error at: (~108 MB)

Change History (2)

comment:1 Changed 11 years ago by Even Rouault

Owner: changed from warmerdam to Even Rouault
Status: newassigned

comment:2 Changed 11 years ago by Even Rouault

Resolution: fixed
Status: assignedclosed

Fixed in r17435. Works fine with and also tested by hacking with an hexadecimal editor the abc3x1 in autotest/gdrivers/data to test small block sizes

Note: See TracTickets for help on using tickets.