Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-06-18 22:04:56



Reply to topic  [ 2 posts ] 
Way to crash client 
Author Message

Joined: 2011-07-27 13:02:35
Posts: 78
Location: Ukraine
Reply with quote
To immediately close CoolVL - just press Ctrl+U and select PSD file...

Sure PSD format is not supported by sl. But if often click it occasionally and it crashes... Could you please make coolVL to recognize PSD file and say its unsupported - instead of immediate closure?


2011-08-21 21:51:12
Profile

Joined: 2009-03-17 18:42:51
Posts: 5995
Reply with quote
I tried to reproduce the crash, but the Cool VL Viewer properly reports a failure to decode the PSD image I used:
Attachment:
PSDupload.png
PSDupload.png [ 27.94 KiB | Viewed 1555 times ]


Also, I fail to see how you can accidentally select an image with an unrecognized format, since by default, and unless your force the filter to "all files", the file selector is passed a filter only allowing to select PNG, TGA, BMP and JPG files.

This said, the viewer must support TGA files, and since TGA files are without a "magic number" in their header (which is just a collection of pointers and size related numbers describing the image width, height, channels, etc), the viewer cannot recognize a random unsupported format from a TGA file and will attempt to load it as a TGA file anyway, which, depending on the values it finds in what it thinks is a legit TGA header, might lead to a crash. Some sanity checks are made, but they can't reasonably cover all possible cases.

Simply be more careful when overriding the file selector filter and trying to force the viewer to "digest" a format it doesn't support...

I will also note that this is in no way a Cool VL Viewer specific bug (so you should reproduce it with an official viewer and report it on the SL JIRA if you want it to get fixed some day).


2011-08-21 23:13:18
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

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
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.