summaryrefslogtreecommitdiff
path: root/svl/source/misc/strmadpt.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-30 20:08:04 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-01 09:17:27 +0200
commitfdbc8d1374e2a9fde6c99acbe6923a277695a0a3 (patch)
tree945aa7aa4638c47e76b5524e4c8f8d1e3e32b212 /svl/source/misc/strmadpt.cxx
parentfe72e20f865baca9387e5d14327c56b2773d760f (diff)
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: Ie1aff54bbc2d9dad0298636bf680ac7790f70a72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166941 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svl/source/misc/strmadpt.cxx')
-rw-r--r--svl/source/misc/strmadpt.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svl/source/misc/strmadpt.cxx b/svl/source/misc/strmadpt.cxx
index 7a755d924986..919cb4ab3a45 100644
--- a/svl/source/misc/strmadpt.cxx
+++ b/svl/source/misc/strmadpt.cxx
@@ -591,6 +591,7 @@ void SvDataPipe_Impl::write(sal_Int8 const * pBuffer, sal_uInt32 nSize)
= static_cast< Page * >(std::malloc(
sizeof (Page) + m_nPageSize
- 1));
+ assert(pNew && "Don't handle OOM conditions");
pNew->m_pPrev = m_pWritePage;
pNew->m_pNext = m_pWritePage->m_pNext;