Opened 15 years ago
Closed 15 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 |
Cc: |
Description
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:
ftp://ftp.fsl.orst.edu/pub/gregorym/gdal/corrupt.zip (~108 MB)
Change History (2)
comment:1 by , 15 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in r17435. Works fine with corrupt.zip and also tested by hacking with an hexadecimal editor the abc3x1 in autotest/gdrivers/data to test small block sizes