summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8graf.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-19 20:16:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-20 10:53:40 +0200
commit24362462d78b31c0b7d4fcf6d63b2c9740823c9f (patch)
tree4f699fba423dfd95d9172ddb446fb805df520df0 /sw/source/filter/ww8/ww8graf.cxx
parent6fd24eaad660387ea712e9309d7012b45bef49af (diff)
ofz#33433 Heap-Buffer-overflow
since... commit 531993161d6fe8065436191666cc88d7c4c20749 Date: Mon Apr 12 08:13:53 2021 +0200 cid#1476017 Read_GrafLayer's subfunction params are never null Change-Id: Ic4fe55d92abbb0ba90abc70668fd6a837511240f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114307 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8graf.cxx')
-rw-r--r--sw/source/filter/ww8/ww8graf.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx
index 1bfc72100aef..c4ea188cf03f 100644
--- a/sw/source/filter/ww8/ww8graf.cxx
+++ b/sw/source/filter/ww8/ww8graf.cxx
@@ -2516,8 +2516,7 @@ SwFrameFormat* SwWW8ImplReader::Read_GrafLayer( tools::Long nGrafAnchorCp )
WW8_FC nStartFc;
void* pF0;
- pPF->Get(nStartFc, pF0);
- if (!pF0)
+ if (!pPF->Get(nStartFc, pF0))
{
OSL_ENSURE( false, "+Where is the graphic (2) ?" );
return nullptr;