[Matroska-devel] Using (std::nothrow) with new

Denis Charmet typx at dinauz.org
Fri Apr 26 23:45:11 CEST 2013


I have problems handling some corrupted files where elements are way to
big to be allocated, after some research it appears that new, by default
throws an exception instead of returning nullptr.

So I join a patch that adds (std::nothrow) to new when the result is
checked for NULL result.


Denis Charmet - TypX
Le mauvais esprit est un art de vivre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-std-nothrow-with-new-when-the-code-check-for-nul.patch
Type: text/x-diff
Size: 3951 bytes
Desc: not available
URL: <http://lists.matroska.org/pipermail/matroska-devel/attachments/20130426/332184d1/attachment.patch>

More information about the Matroska-devel mailing list