AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.06.04 06:35 "[Tiff] Segfault", by Alex Ryu
2006.06.04 06:46 "RE: [Tiff] Segfault", by Venkatasalapathy D - TLS, Chennai
2006.06.04 14:46 "RE: [Tiff] Segfault", by Bob Friesenhahn
2006.06.04 14:41 "Re: [Tiff] Segfault", by Bob Friesenhahn

2006.06.04 14:41 "Re: [Tiff] Segfault", by Bob Friesenhahn

On Sat, 3 Jun 2006, Alex Ryu wrote:

     TIFFGetField(tif, TIFFTAG_IMAGEWIDTH, &w);
    TIFFGetField(tif, TIFFTAG_IMAGELENGTH, &h); /*length = height*/
    tif = TIFFOpen("c:\\image1.tif", "r");

The above code is clearly broken since you are using the tif handle before it has even been intialized by TIFFOpen();

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/