Re: Relying on exceptions in fuzz tests?
Bob Friesenhahn <[email protected]>
| Newsgroups | gmane.comp.video.openexr.devel |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/