bridges/source/cpp_uno/msvc_win32_intel/except.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 124252aa0be6ff13212f59f50352fb934e1c280c Author: Caolán McNamara <[email protected]> AuthorDate: Fri May 10 19:40:36 2024 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Sat May 11 11:09:49 2024 +0200 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 <[email protected]> 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);
