Ticket #2307 (closed defect: duplicate)

Opened 5 years ago

Last modified 5 years ago

Cannot read tiff in gdal 1.5.1 for WinCE

Reported by: mferrero Owned by: mloskot
Priority: high Milestone:
Component: WinCE Port Version: 1.5.0
Severity: critical Keywords:
Cc:

Description

I was able to open tiff files on WinCE with gdal 1.4.2, but now that I ricompiled gdal 1.5.1 for WinCE, I cannot read tiff files anymore. I suspect the problem is due to the libtiff changes introduced with gdal 1.5.0.

In gdal 1.5.1 when bsearch is called within TIFFFindField the value of tif->tif_nfields is initially 0. This causes bsearch to fail as the num parameter is 0. The bsearch used on WinCE is the one provided for the WinCe? port (wcelibcex library).

I also tried to change the bsearch code of wcelibcex to return NULL when num is 0. The result is that now bsearch does not fail but I still have other errors returned from libtiff later in the code. The same file opened with the same code compiled for Windows XP works correctly.

Regards, Marcello Ferrero

Change History

Changed 5 years ago by mloskot

  • status changed from new to closed
  • resolution set to duplicate

This is duplicate of already reported issue #2133

Note: See TracTickets for help on using tickets.