[Gdal-dev] Problem with external tiff/geotiff.

Andrey Kiselev dron at ak4719.spb.edu
Wed Mar 17 13:02:29 EST 2004


On Wed, Mar 17, 2004 at 06:18:38PM +0100, Fr?d?ric Trastour wrote:
> GDAL is configured to use external Tiff and GEOtiff libraries ( V3.6.0
> and V1.2.1 ).
> 
> Everything works fine execpting that  I have a crash in
> gt_wkt_srs.cpp.
> 
> the problem is the following :
...
> pszSpheroidName is allocated with CPLStrdup ( based on VSIStrdup based
> on strdup ) then liberated using  GTIFFreeMemory based on the libTIFF
> allocator which use on windows, functions like GlobalAlloc,
> GlobalFree... (in tif_win32.c).

It looks like a bug. Please, try the following patch against the
gt_wkt_srs.cpp:

--- gt_wkt_srs.cpp.bak	2004-03-17 20:55:42.000000000 +0300
+++ gt_wkt_srs.cpp	2004-03-17 20:58:25.000000000 +0300
@@ -165,9 +165,9 @@
  *
  */
 
-#include "cpl_port.h"
-#include "cpl_csv.h"
-#define CPL_SERV_H_INCLUDED
+#include "cpl_serv.h"
+#include "geo_tiffp.h"
+#define _CPL_ERROR_H_INCLUDED_
 
 #include "geo_normalize.h"
 #include "geovalues.h"


-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517



More information about the Gdal-dev mailing list