Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index


On Sun, 2018-05-27 at 22:28 +0000, scan-admin@coverity.com wrote:
*** CID 1078573:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/core/docnode/swbaslnk.cxx

Since 7581730b2795a58d4fe6868e2f61572a91fde293 lcl_CallModify ends
up as...

bool bUpdate = false;
SwGrfNode* pSwGrfNode = nullptr;
if (m_pContentNode->IsGrfNode())
    ...
else if( m_pContentNode->IsOLENode() )
    bUpdate = true;

if (bUpdate)
    ...
    SetGrfFlySize(aGrfSz, pSwGrfNode, aOldSz)

so on the face of it, if its an ole node and not a graphic
SetGrfFlySize now derefs null pSwGrfNode.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.