Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Crash when loading some jpeg files
Re: Crash when loading some jpeg files [message #59521 is a reply to message #59508] |
Mon, 16 January 2023 10:09  |
pvictor
Messages: 75 Registered: December 2015
|
Member |
|
|
Well, after waiting for a while, I decided to find this bug myself.
I don't know if it is 100% correct, but it prevents crash on those unhappy images:
uppsrc/plugin/jpg/jpgupp.cpp: 384
- for(int diroff = Exif32(p + 4, end); diroff && begin + diroff < end; diroff = ExifDir(begin, end, diroff, BASE_IFD))
+ for(int diroff = Exif32(p + 4, end); diroff>0 && begin + diroff < end; diroff = ExifDir(begin, end, diroff, BASE_IFD))
Best regards,
Victor
|
|
|
Goto Forum:
Current Time: Sun May 11 12:51:12 CEST 2025
Total time taken to generate the page: 0.00982 seconds
|