TIFF file crashes gflLoadBitmapFromMemory() (and XnView too)

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, helmut, xnview

Ralf
Posts: 7
Joined: Fri Apr 11, 2008 9:15 am

TIFF file crashes gflLoadBitmapFromMemory() (and XnView too)

Post by Ralf »

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
You do not have the required permissions to view the files attached to this post.
User avatar
AmigoJack
Posts: 33
Joined: Tue Mar 09, 2010 6:40 pm

Re: TIFF file crashes gflLoadBitmapFromMemory() (and XnView

Post by AmigoJack »

I can confirm this: GFL SDK 3.11 on WinXP also crashes when gflLoadBitmap()ing or gflLoadThumbnail()ing this file.

Even the old ACDSee 3.1 (from 2000) can read this file without problems - picture properties are displayed as "9@256x256x24b tiff" (9 pages, 256px in width and height, truecolor, compression ratio is 4.2).
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 45039
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: TIFF file crashes gflLoadBitmapFromMemory() (and XnView

Post by xnview »

Please try XnView 1.97.7
Pierre.
Ralf
Posts: 7
Joined: Fri Apr 11, 2008 9:15 am

Re: TIFF file crashes gflLoadBitmapFromMemory() (and XnView

Post by Ralf »

XnView 1.97.7 works great with these files! thanks! :D

now all i need is an updated gfl sdk... :wink: