summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-31 12:24:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-31 16:54:22 +0200
commit2b0b12fa3bf9a880ad447368f7bd8a296e3a2834 (patch)
treea0db464e875b53fb2d76e7efb1ce6591777e21d0
parentfc91d611a231ae6fc498d0ac32944afb72775b95 (diff)
cid#1500609 silence Use after free
Change-Id: I090624c75de9567261ca1d3e2e4b4106c5d58352 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139107 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/core/doc/doccomp.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index f9b16bb619ad..92f0d2fd1207 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -1769,6 +1769,7 @@ void CompareData::SetRedlinesToDoc( bool bUseDocInfo )
}
do {
+ // coverity[deref_arg] - pTmp is valid here
if (IDocumentRedlineAccess::AppendResult::APPENDED ==
m_rDoc.getIDocumentRedlineAccess().AppendRedline(
new SwRangeRedline(aRedlnData, *pTmp), true) &&