I'm confused, that's a png file, how does it ever hit TIFFInput::read_scanlines?


> On Oct 23, 2015, at 9:07 AM, Michel Lerenard <[email protected]> wrote:
> 
> Hi,
> 
> I've encountered a file that makes OIIO crashes during load. The file has an 
> unassociated alpha channel, and by default OIIO tries to premult it in 
> TIFFInput::read_scanlines.
> The process crashes.
> 
> I can prevent the crash by adding "config.attribute 
> ("oiio:UnassociatedAlpha", 1);" into my config spec before I load the file.
> 
> I've upped the file here, if anyone can have a look at it ?
> http://s28.postimg.org/df6s8zbn1/zlf_density.png
> 
> I'm wondering if I can detect that the process will fail and add the flag at 
> load ?
> I made a test with a smaller file (256*256), and it does no crash, weirdly.
> 
> 
> Thanks.
> 
> Michel
> 

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to