diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-30 19:39:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-30 22:04:11 +0200 |
commit | a2623abe07c5fe369c6b7315ae53de3884750839 (patch) | |
tree | 91b94319a31c38f1e1ebe52f0353c8436cedfe0d /bridges | |
parent | 17b2f3d96fb21dcfc2fb8e54ca9670a8c58840f1 (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I498c10e8bc134b41e3606d8a05cf3103a9274735
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166937
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_x86-64/except.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx index e5836dd11d98..7dd6df9cb6ce 100644 --- a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx @@ -410,6 +410,7 @@ RaiseInfo::RaiseInfo(typelib_TypeDescription* pTD) noexcept // 32 bit offsets const int totalSize = codeSize + typeInfoArraySize + excTypeAddLen; unsigned char* pCode = _code = static_cast<unsigned char*>(std::malloc(totalSize)); + assert(pCode && "Don't handle OOM conditions"); int pCodeOffset = 0; // New base of types array, starts after Trampoline D-Tor / C-Tors |