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



Hi,

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

2 new defect(s) introduced to LibreOffice found with Coverity Scan.
5 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 2 of 2 defect(s)


** CID 1427648:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/uibase/shells/textsh1.cxx: 192 in sw_CharDialog(SwWrtShell &, bool, unsigned short, 
const SfxItemSet *, SfxRequest *)()


________________________________________________________________________________________________________
*** CID 1427648:  Null pointer dereferences  (FORWARD_NULL)
/sw/source/uibase/shells/textsh1.cxx: 192 in sw_CharDialog(SwWrtShell &, bool, unsigned short, 
const SfxItemSet *, SfxRequest *)()
186             if (nSlot == FN_INSERT_HYPERLINK)
187                 pDlg->SetCurPageId("hyperlink");
188             else if (nSlot == SID_CHAR_DLG_EFFECT)
189                 pDlg->SetCurPageId("fonteffects");
190             else if (nSlot == SID_ATTR_CHAR_FONT || nSlot == SID_CHAR_DLG_FOR_PARAGRAPH)
191                 pDlg->SetCurPageId("font");
    CID 1427648:  Null pointer dereferences  (FORWARD_NULL)
    Comparing "pReq" to null implies that "pReq" might be null.
192             else if (pReq)
193             {
194                 const SfxStringItem* pItem = (*pReq).GetArg<SfxStringItem>(FN_PARAM_1);
195                 if (pItem)
196                     pDlg->SetCurPageId(OUStringToOString(pItem->GetValue(), 
RTL_TEXTENCODING_UTF8));
197             }

** CID 1427647:  Resource leaks  (RESOURCE_LEAK)
/sal/osl/all/log.cxx: 170 in <unnamed>::getLogFile()()


________________________________________________________________________________________________________
*** CID 1427647:  Resource leaks  (RESOURCE_LEAK)
/sal/osl/all/log.cxx: 170 in <unnamed>::getLogFile()()
164             return nullptr;
165     #endif
166     
167         // stays until process exits
168         static std::ofstream file(logFile, std::ios::app | std::ios::out);
169     
    CID 1427647:  Resource leaks  (RESOURCE_LEAK)
    Variable "logFile" going out of scope leaks the storage it points to.
170         return &file;
171     }
172     
173     void maybeOutputTimestamp(std::ostringstream &s) {
174         static char const * env = getLogLevel();
175         if (env == nullptr)


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, 
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRZBnDJeNb0HijxaS4JNJPxk3kpyAm2AYqo71yXmnOxB72ibeUH-2F-2F1Lhi9AZq3dRu-2F4-3D_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyc4udzmiJSzBsEwGwPEI3Br1-2ByP3I2cYgk-2BF32r-2FgVSbcONIOBWuER3Fg1puDScBcSz0en4hExWDy3rmle0b2Q-2BeXy8vq9UgsfHazjpDXBW0g-2FySnGWJpjJ9bJzcCPyMKJt8j3cAB3HCyArJhJz22tft7kNEPpWwJ-2FhDu2-2F7hwj0-3D

To manage Coverity Scan email notifications for "libreoffice@lists.freedesktop.org", click 
https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5lwWgMDuK-2FivqaohkU3M9kT-2Fww10Qt2GoaCJAOQCa0Wv4ijH4oV8jCt0XXa7QeAwh_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyc4udzmiJSzBsEwGwPEI3Bqu0RuL61-2FwJRxIBjAqii3JT007zywK2RrZriqRFyCuIQoDcjQe7Vdlnoisyat7Mf-2BEnhC2nEYgcBBj1zWw38l8H48rxh6sgkh7vxrDC2gaw8EqV3HQsisqO3dSfAr76cBxhIkUpZ6EHBo6kqDvVHag-3D


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.