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



Hi,

Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.

3 new defect(s) introduced to LibreOffice found with Coverity Scan.
7 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by 
Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 3 of 3 defect(s)


** CID 1270937:  Null pointer dereferences  (FORWARD_NULL)
/sw/qa/core/macros-test.cxx: 407 in SwMacrosTest::testFindReplace()()


________________________________________________________________________________________________________
*** CID 1270937:  Null pointer dereferences  (FORWARD_NULL)
/sw/qa/core/macros-test.cxx: 407 in SwMacrosTest::testFindReplace()()
401     
402     void SwMacrosTest::testFindReplace()
403     {
404         // we need a full document with view and layout etc. because ::GetNode()
405         Reference<lang::XComponent> const xComponent =
406             loadFromDesktop("private:factory/swriter", "com.sun.star.text.TextDocument");
    CID 1270937:  Null pointer dereferences  (FORWARD_NULL)
    Assigning: "pTxtDoc" = "dynamic_cast <SwXTextDocument *>(xComponent.get())".
407         SwXTextDocument *const pTxtDoc = dynamic_cast<SwXTextDocument *>(xComponent.get());
408         SwDoc *const pDoc = pTxtDoc->GetDocShell()->GetDoc();
409         SwNodeIndex aIdx(pDoc->GetNodes().GetEndOfContent(), -1);
410         // use a UnoCrsr so it will be corrected when deleting nodes
411         SwUnoCrsr *const pPaM(pDoc->CreateUnoCrsr(SwPosition(aIdx), false));
412     


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/211?tab=overview

To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click 
https://scan.coverity.com/subscriptions/edit?email=libreoffice%40lists.freedesktop.org&token=d6481d718a775246b2340f282ebe5939
 .


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.