TIFF file crashes gflLoadBitmapFromMemory() (and XnView too)
Posted: Tue Jun 29, 2010 10:01 am
attached TIFF file (and a bunch of similar ones - apparently texture files created with tdlmake from 3Delight) crashes gflLoadBitmapFromMemory() (tested with GFL SDK 2.8.2) - and XnView 1.97.6 as well
Microsoft Explorer shows proper thumbnails on Win7 (but not on XP)
gflGetFileInformationFromHandle() seems to work just fine, accessing the pixels gives us grief
GFL_ERROR const gfl_error = gflLoadBitmapFromMemory( reinterpret_cast<GFL_UINT8 const *>(pIn), filled, &p_bitmap, &load_params, NULL );
Heap corruption detected at 0943A078
First-chance exception at 0x7d62c72b in a.exe: 0xC0000005: Access violation writing location 0xffffffff.
HEAP[a.exe]: Heap block at 089A1F30 modified at 089A2638 past requested size of 700
Microsoft Explorer shows proper thumbnails on Win7 (but not on XP)
gflGetFileInformationFromHandle() seems to work just fine, accessing the pixels gives us grief

GFL_ERROR const gfl_error = gflLoadBitmapFromMemory( reinterpret_cast<GFL_UINT8 const *>(pIn), filled, &p_bitmap, &load_params, NULL );
Heap corruption detected at 0943A078
First-chance exception at 0x7d62c72b in a.exe: 0xC0000005: Access violation writing location 0xffffffff.
HEAP[a.exe]: Heap block at 089A1F30 modified at 089A2638 past requested size of 700