From 124252aa0be6ff13212f59f50352fb934e1c280c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 10 May 2024 19:40:36 +0100 Subject: WaE: C6011 Dereferencing NULL pointer warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iab647d1f98bb532bc0a2c42971e747708e52a875 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167495 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- bridges/source/cpp_uno/msvc_win32_intel/except.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'bridges') 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); -- cgit