If GraphicsMagick has been compiled without support for a needed image 
format (ie, png) then attempting to use a WRasterImage with that format 
causes a SegFault.

The issue is that the call to ImageToBlob returns a null pointer and 
does not set the size. Then the data result is copied to the result 
buffer causing a SegFault due to a read from address 0. ImageToBlob also 
sets the exception object to state the reason the call failed.

I believe it would be better to detect the failure of ImageToBlob and 
throw a descriptive exception rather than SegFault.

--
Thomas

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to