id summary reporter owner description type status priority milestone component version severity resolution keywords cc 1882 Geotiff photometric minimum is white tomvr warmerdam "I tried to open a GEOTIFF file where the TIFFTAG_PHOTOMETRIC has been set to PHOTOMETRIC_MINISWHITE. It causes a segmentation fault (floating point exception). The problem occurs on line 2894 of the frmts/gtiff/geotiff.cpp file; here you try to build an inverse color pallette. nColorCount = 1 << nBitsPerSample; // nBitsPersample is 32 in my case ... for ( iColor = 0; iColor < nColorCount; iColor++ ) { oEntry.c1 = oEntry.c2 = oEntry.c3 = (255 * (nColorCount - 1 - iColor)) / (nColorCount-1); oEntry.c4 = 255; poColorTable->SetColorEntry( iColor, &oEntry ); } 'nColorCount' results to 1, resulting in a floating point exception since you are dividing by 0. In attachment you can find the geotiff file I've used." defect closed normal 1.5.0 GDAL_Raster 1.3.2 normal fixed gtiff