New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Sat Dec 23 17:35:57 UTC 2017
Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.
4 new defect(s) introduced to LibreOffice found with Coverity Scan.
2 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 4 of 4 defect(s)
** CID 1426924: Memory - illegal accesses (RETURN_LOCAL)
/svx/source/items/svxerr.cxx: 30 in SvxErrorHandler::SvxErrorHandler()()
________________________________________________________________________________________________________
*** CID 1426924: Memory - illegal accesses (RETURN_LOCAL)
/svx/source/items/svxerr.cxx: 30 in SvxErrorHandler::SvxErrorHandler()()
24 #include <svxerr.hrc>
25
26 SvxErrorHandler::SvxErrorHandler() :
27 SfxErrorHandler(
28 getRID_SVXERRCODE(), ErrCodeArea::Svx, ErrCodeArea::Svx, SvxResLocale())
29 {
>>> CID 1426924: Memory - illegal accesses (RETURN_LOCAL)
>>> Returning here.
30 }
31
32 namespace
33 {
34 class theSvxErrorHandler
35 : public rtl::Static<SvxErrorHandler, theSvxErrorHandler> {};
** CID 1426923: Memory - illegal accesses (RETURN_LOCAL)
/oox/source/ppt/pptimport.cxx: 165 in oox::ppt::PowerPointImport::importDocument()()
________________________________________________________________________________________________________
*** CID 1426923: Memory - illegal accesses (RETURN_LOCAL)
/oox/source/ppt/pptimport.cxx: 165 in oox::ppt::PowerPointImport::importDocument()()
159 bool bRet = importFragment(xPresentationFragmentHandler);
160
161 if (mbMissingExtDrawing)
162 {
163 // Construct a warning message.
164 INetURLObject aURL(getFileUrl());
>>> CID 1426923: Memory - illegal accesses (RETURN_LOCAL)
>>> Temporary variable of type "std::locale" goes out of scope.
165 SfxErrorContext aContext(ERRCTX_SFX_OPENDOC, aURL.getName(INetURLObject::LAST_SEGMENT, true, INetURLObject::DecodeMechanism::WithCharset), nullptr, getRID_ERRCTX());
166 OUString aWarning;
167 aContext.GetString(ERRCODE_NONE.MakeWarning(), aWarning);
168 aWarning += ":\n";
169 aWarning += SvxResId(RID_SVXSTR_WARN_MISSING_SMARTART);
170
** CID 1426922: Uninitialized members (UNINIT_CTOR)
/sc/source/ui/dbgui/asciiopt.cxx: 40 in ScAsciiOptions::ScAsciiOptions()()
________________________________________________________________________________________________________
*** CID 1426922: Uninitialized members (UNINIT_CTOR)
/sc/source/ui/dbgui/asciiopt.cxx: 40 in ScAsciiOptions::ScAsciiOptions()()
34 cTextSep ( cDefaultTextSep ),
35 eCharSet ( osl_getThreadTextEncoding() ),
36 eLang ( LANGUAGE_SYSTEM ),
37 bCharSetSystem ( false ),
38 nStartRow ( 1 )
39 {
>>> CID 1426922: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "bSkipEmptyCells" is not initialized in this constructor nor in any functions that it calls.
40 }
41
42 ScAsciiOptions::~ScAsciiOptions()
43 {
44 }
45
** CID 1426921: Uninitialized members (UNINIT_CTOR)
/vcl/source/gdi/jobset.cxx: 87 in ImplJobSetup::ImplJobSetup(const ImplJobSetup&)()
________________________________________________________________________________________________________
*** CID 1426921: Uninitialized members (UNINIT_CTOR)
/vcl/source/gdi/jobset.cxx: 87 in ImplJobSetup::ImplJobSetup(const ImplJobSetup&)()
81 {
82 mpDriverData = static_cast<sal_uInt8*>(rtl_allocateMemory( mnDriverDataLen ));
83 memcpy( mpDriverData, rJobSetup.GetDriverData(), mnDriverDataLen );
84 }
85 else
86 mpDriverData = nullptr;
>>> CID 1426921: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "meSetupMode" is not initialized in this constructor nor in any functions that it calls.
87 }
88
89 ImplJobSetup::~ImplJobSetup()
90 {
91 rtl_freeMemory( mpDriverData );
92 }
________________________________________________________________________________________________________
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-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyVi6LaJRNxumUOWFZyK3iTlSSlqB-2B1h6hcejEQniHdEEhWxujP210umaRtY9TEOCuogSEBMQfMRpxeZRfZM-2BzIJA1tSxOsd8py3dVy1fDrYlnUrpYnKCKNG7eGSRwI3YcB6HRkEKP5SARUO080HXSiPyE-2BJGKaiJgxyH3J-2Bo08SE-3D
To manage Coverity Scan email notifications for "libreoffice at lists.freedesktop.org", click https://u2389337.ct.sendgrid.net/wf/click?upn=08onrYu34A-2BWcWUl-2F-2BfV0V05UPxvVjWch-2Bd2MGckcRbVDbis712qZDP-2FA8y06Nq4k1FZJSDV-2FTHi5VQof9xGafB4oBwGYxuHHknceo2QLpCrZ44Ciy7AqBR2QyX6OCB5lwWgMDuK-2FivqaohkU3M9kT-2Fww10Qt2GoaCJAOQCa0Wv4ijH4oV8jCt0XXa7QeAwh_g-2BrHdvqzaBa155F-2F8AmPhpJzY63UzWDisJV95WUBpGhqFw1ICExHG8aMaV2EoFpyVi6LaJRNxumUOWFZyK3iTofGgXEBCXNvrvSk1-2BMAwazam3-2BO6RXx8rB3VauPdMdHAXU48JSjrq-2Bgf0TgXjBm3fyKdJ9a6ZomtidZzIiSWKBNzEmHKLDRAIOmLN7WLRITGH9dxv-2FSf2jqkZC1MYdnHzgdBV54WheuMmYevivdN3s-3D
More information about the LibreOffice
mailing list