sw/source/core/doc/doccomp.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 2b0b12fa3bf9a880ad447368f7bd8a296e3a2834
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Aug 31 12:24:30 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Aug 31 16:54:22 2022 +0200

    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 <caol...@redhat.com>

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) &&

Reply via email to