summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bridges/source/cpp_uno/msvc_win32_intel/except.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
index d65152b29dbe..318bc8b7da1e 100644
--- a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
+++ b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
@@ -160,6 +160,7 @@ RaiseInfo::RaiseInfo( typelib_TypeDescription * pTypeDescr ) throw ()
// info count accompanied by type info ptrs: type, base type, base base type, ...
_types = std::malloc( sizeof(sal_Int32) + (sizeof(ExceptionType *) * nLen) );
+ assert(_types && "Don't handle OOM conditions");
*(sal_Int32 *)_types = nLen;
ExceptionType ** ppTypes = (ExceptionType **)((sal_Int32 *)_types + 1);