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: Bob Friesenhahn
Subject: Re: [Openexr-devel] Relying on exceptions in fuzz tests?
Date: Thu, 29 May 2014 08:55:27 -0500 (CDT)
User-agent: Alpine 2.01 (GSO 1266 2009-07-14)

On Thu, 29 May 2014, Peter Hillman wrote:

It seems like the OpenEXR library does rather assume that calls to 'new' etc will throw exceptions if they fail, rather than nullptr testing. This is in the library itself, rather than the fuzz tests.

Isn't that what the C++ standard has always said that 'new' should do?

Hardly any modern C++ code (including the standard C++ library) will work properly if new does not throw an exception on failure to allocate memory.

It seems best to fix/replace the broken compiler.

Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/



reply via email to

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