2006.06.04 06:35 "[Tiff] Segfault", by Alex Ryu

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/