<div dir="ltr">Hi,<div><br></div><div style>I was using GDAL version 1.9.1 to get NTv2 grid from raster in PostGIS using gdal_translate. I got the error: 0*** buffer overflow detected ***: gdal_translate terminated</div><div style>
I was trying to use GDAL version 1.9.2 but with the same error. Is there any way how to fix it?</div><div style><br></div><div style>Thanks,</div><div style><br></div><div style>Ondrej</div><div style><br></div><div style>
Code:</div><div style><div>gdal_translate -of NTv2 "PG:dbname='dataz' schema='public' table='rast_ntv_b' column='rast_ntv' mode='2'" rast_ntv4.gsb</div><div>Input file size is 20, 20</div>
<div>0*** buffer overflow detected ***: gdal_translate terminated</div><div>======= Backtrace: =========</div><div>/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb6b09045]</div><div>/lib/i386-linux-gnu/libc.so.6(+0x102e1a)[0xb6b07e1a]</div>
<div>/lib/i386-linux-gnu/libc.so.6(+0x10214d)[0xb6b0714d]</div><div>/usr/lib/libgdal.so.1(_ZN20PostGISRasterDataset9IRasterIOE10GDALRWFlagiiiiPvii12GDALDataTypeiPiiii+0x3a8)[0xb708eef8]</div><div>/usr/lib/libgdal.so.1(_ZN11GDALDataset8RasterIOE10GDALRWFlagiiiiPvii12GDALDataTypeiPiiii+0x5b1)[0xb715d581]</div>
<div>/usr/lib/libgdal.so.1(GDALDatasetCopyWholeRaster+0x4ef)[0xb7187b1f]</div><div>/usr/lib/libgdal.so.1(_ZN10GDALDriver17DefaultCreateCopyEPKcP11GDALDatasetiPPcPFidS1_PvES6_+0x67d)[0xb71622ed]</div><div>/usr/lib/libgdal.so.1(_ZN10GDALDriver10CreateCopyEPKcP11GDALDatasetiPPcPFidS1_PvES6_+0x173)[0xb7162683]</div>
<div>/usr/lib/libgdal.so.1(GDALCreateCopy+0x53)[0xb7162703]</div><div>gdal_translate[0x804ca0c]</div><div>gdal_translate[0x8049b41]</div><div>/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb6a1e4d3]</div><div>gdal_translate[0x8049b65]</div>
</div><div style><br></div></div>