OpenSceneGraph/src/osgPlugins/tiff
Robert Osfield a48a4aa7d3 From Michael Henheffer, "Bug: The reader would crash when trying to load a .tif image that
contained an 8-bit color map.  The crash occured at line 545:

remap_row(currPtr, inbuf, w, red, green, blue);


Cause:  The code was trying to write past the end of the buffer while
doing this remapping.  The size of the buffer is determined based on the
value of 'format', which was 1 in this case since bitspersample is
8(indicating a 8-bit color map).  The buffer should have been created 3
times as large since that 8-bit value is indexing a 24-bit color.


Fix:  I've put in an if statement to set format to 3 if 'photometric'
indicates the tif contains a palette as the output data will always be
24-bit color data in this case."
2006-10-30 12:05:56 +00:00
..
GNUmakefile 1) Replaced all Makefile* with GNUmakefile*. 2003-03-12 10:39:43 +00:00
ReaderWriterTIFF.cpp From Michael Henheffer, "Bug: The reader would crash when trying to load a .tif image that 2006-10-30 12:05:56 +00:00