id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc 4090,[PATCH] Off-by-one error in GDALReplicateWord,bclaywell,Even Rouault,"(This bug was observed in 1.8.0, but the relevant code in trunk appears unchanged.) When attempting to expand the canvas of an image with a non-zero nodata value (1, in this case) we noticed that the rightmost column of the image was still zero. Inspection of the GByte packed buffer case in [http://trac.osgeo.org/gdal/browser/trunk/gdal/gcore/rasterio.cpp?rev=21884#L1069 GDALReplicateWord] reveals that the count argument to memset is nWordCount - 1 ([http://trac.osgeo.org/gdal/browser/trunk/gdal/gcore/rasterio.cpp?rev=21884#L1095 line 1095]) even though it was already decremented on [http://trac.osgeo.org/gdal/browser/trunk/gdal/gcore/rasterio.cpp?rev=21884#L1086 line 1086] to account for the value already being copied into the first element of pDstData. ",defect,closed,normal,1.8.1,GDAL_Raster,1.8.0,normal,fixed,,Even Rouault