It is currently Tue Sep 17, 2019 7:34 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: IMA on certain corrupted PNG image files.
PostPosted: Thu Jul 18, 2019 1:40 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1792
Location: Pas-de-Calais, France
Somewhat similar to this viewtopic.php?f=4&t=72364

The following code is crashing the debugger with the given malformed image file. Nothing seems to happen without the debugger, but a crash finish to occur after some times.
Code:
EnableDebugger
UsePNGImageDecoder()

If OpenWindow(0, 0, 0, 256, 256, "PNG bug test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
 
  LoadImage(0, "0.png") ; Good picture file
  Debug "OK"
  LoadImage(0, "11244.png") ; Bad picture file
  Debug "Not OK"
  ImageGadget(0, 0, 0, 256, 256, ImageID(0))
 
  Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf

Full archive with images


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye