diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-19 20:16:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-20 10:53:40 +0200 |
commit | 24362462d78b31c0b7d4fcf6d63b2c9740823c9f (patch) | |
tree | 4f699fba423dfd95d9172ddb446fb805df520df0 /sw/source/filter/ww8/ww8graf.cxx | |
parent | 6fd24eaad660387ea712e9309d7012b45bef49af (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.cxx | 3 |
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; |