openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Relying on exceptions in fuzz tests?


From: Christopher Horvath
Subject: Re: [Openexr-devel] Relying on exceptions in fuzz tests?
Date: Thu, 29 May 2014 12:14:34 -0700

I'm compiling OpenEXR with exceptions, but the libraries that I am required to link to beneath OpenEXR have the exception behavior disabled (inconsistently).

I'm happy with the results that 2.1.0 passes all the regular tests for all the libraries. The fuzz tests don't work, but in my case, that's okay, I think.


On Thu, May 29, 2014 at 12:12 PM, Brendan Bolles <address@hidden> wrote:
On May 29, 2014, at 10:19 AM, Christopher Horvath wrote:

> I'm in a crippled environment that explicitly disallows exceptions, and has modified underlying some (but not all) underlying libraries accordingly.


Really the answer is that the OpenEXR library requires exceptions, just like it requires RTTI and other things.  All the error handling is done with exceptions.  If I turn off exceptions in gcc, I get an error wherever you see the keyword "throw".  The library also never checks the result of a "new" operator because those are supposed to throw exceptions if they fail.

So I guess you're going to have to start hacking your way to an exception-free version.


Brendan




--
I think this situation absolutely requires that a really futile and stupid gesture be done on somebody's part. And we're just the guys to do it.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]