Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
pvictor is currently offline  pvictor
Messages: 67
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
 
Read Message
Read Message
Previous Topic: Single Pixel Wide Straight Lines
Next Topic: BufferPainter Text Clips all text when partial off screen
Goto Forum:
  


Current Time: Thu May 16 01:03:59 CEST 2024

Total time taken to generate the page: 0.02111 seconds