HI
I m using Qt 4.4.3 on Windows. I m using loadfromData function of QImage.
But sometimes it crashes while loading .gif files.
Sample code for this:
unsigned char *qBuffer= new unsigned char[SizeToRead-BytesToIgnore];
memset(qBuffer,0x00,SizeToRead-BytesToIgnore);
memcpy(qBuffer,(const void*)&pBuff[BytesToIgnore],SizeToRead-BytesToIgnore);
QImage image;
image.loadFromData(qBuffer,(SizeToRead-BytesToIgnore));//Load Image from the UChar * array qbuffer
Crash happens in image.loadFromData(qBuffer,(SizeToRead-BytesToIgnore)); for corrupt gif image.
Collect the Call Stack of Crash from Attachment.
Kindly tell me solution.
Thanks
Bookmarks