id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 3862,ASRP datatset loading problem,morabit,warmerdam,"Hi,[[BR]] first of all thank you very much for the support provided in ticket #3848.[[BR]] Few weeks ago we had another problem with a different format:[[BR]] an .IMG file included in a ASRP dataset that belongs to our testsuite.[[BR]] After some investigation, we found that the problem was due to a failed assert[[BR]] preceeding the actual creation of the TILEINDEX array.[[BR]] We were able to fix that problem applying a little patch to gdal 1.7.3.[[BR]] We replaced the following test in srpdataset.cpp, line 567:[[BR]] [[BR]] {{{ if (field->GetDataSize() != nIndexValueWidth * NFL * NFC + 1) { return FALSE; } }}} [[BR]] with[[BR]] [[BR]] {{{ if (field->GetDataSize() < nIndexValueWidth * NFL * NFC + 1) { return FALSE; } }}} [[BR]] [[BR]] This relaxed check appears to be safe because it includes the previously used strict check[[BR]] and doesn't cause errors to the subsequent array creation code.[[BR]] If you think this is safe and correct, can you include this patch in your next official release?[[BR]] Or, in case you think it's not completely correct, can you apply your fix to this problem?[[BR]] [[BR]] We 'd like to link against the official release instead to have to mantain our 1.7.3-patched version.[[BR]] By the way, when it is scheduled next official release? [[BR]] Next official release is milestone 1.8.0 or there will be other intermediate versions?[[BR]] [[BR]] [[BR]] Thank you for the support [[BR]] Bruno M.",defect,closed,normal,,GDAL_Raster,1.7.3,normal,fixed,,