summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-10 19:40:36 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-11 11:09:49 +0200
commit124252aa0be6ff13212f59f50352fb934e1c280c (patch)
treea7a7cd2641f92ef8c0d02d69884323422dc19a54 /bridges
parente0635101b42657ec1c12f961fccff9604f577efa (diff)
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: Iab647d1f98bb532bc0a2c42971e747708e52a875 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167495 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'bridges')
-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);