[Libreoffice-commits] core.git: svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 11 11:02:36 UTC 2021


 svx/source/svdraw/svdoedge.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f3f1140dc9d5766e589b328f86d0dd3804315cf4
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Feb 11 09:27:27 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Feb 11 12:01:53 2021 +0100

    ofz#30805 Null-dereference READ
    
    presumably since...
    
    commit 09cb778b6eb7d3a5b9029965a1320b49c90e7295
    Date:   Tue Feb 9 13:42:22 2021 +0200
    
        clean up SdrObject cloning
    
    Change-Id: I5e87c6ac7b786d691d625e16c31b8916e0b7da76
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110754
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Jenkins

diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx
index 5231d0649b3f..47c012c7c36e 100644
--- a/svx/source/svdraw/svdoedge.cxx
+++ b/svx/source/svdraw/svdoedge.cxx
@@ -179,7 +179,7 @@ SdrEdgeObj::SdrEdgeObj(SdrModel& rSdrModel, SdrEdgeObj const & rSource)
 {
     bClosedObj = false;
     bIsEdge = true;
-    *pEdgeTrack    =*rSource.pEdgeTrack;
+    pEdgeTrack.reset(new XPolygon(*rSource.pEdgeTrack));
     bEdgeTrackDirty=rSource.bEdgeTrackDirty;
     aCon1          =rSource.aCon1;
     aCon2          =rSource.aCon2;


More information about the Libreoffice-commits mailing list