a48a4aa7d3720798ecd9457cb102d76acf7331c4
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."
Welcome to the OpenSceneGraph (OSG).
For up to date information on the project, how to compile and run libraries
and examples, and see the documentation on the OpenSceneGraph website.
http://www.openscenegraph.org
Robert Osfield.
robert@openscenegraph.com
July 19th 2006.
Description
Languages
C++
89.7%
C
5.1%
CMake
2.3%
HTML
1.6%
Objective-C++
0.9%
Other
0.2%