New Defects reported by Coverity Scan for LibreOffice
scan-admin at coverity.com
scan-admin at coverity.com
Tue Sep 6 09:27:08 UTC 2022
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.
8 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 1513721: Uninitialized members (UNINIT_CTOR)
/vcl/source/font/PhysicalFontFace.cxx: 46 in vcl::font::PhysicalFontFace::PhysicalFontFace(const FontAttributes &)()
________________________________________________________________________________________________________
*** CID 1513721: Uninitialized members (UNINIT_CTOR)
/vcl/source/font/PhysicalFontFace.cxx: 46 in vcl::font::PhysicalFontFace::PhysicalFontFace(const FontAttributes &)()
40 , mpHbFace(nullptr)
41 {
42 // StarSymbol is a unicode font, but it still deserves the symbol flag
43 if (!IsSymbolFont())
44 if (IsStarSymbol(GetFamilyName()))
45 SetSymbolFlag(true);
>>> CID 1513721: Uninitialized members (UNINIT_CTOR)
>>> Non-static class member "mbFontCapabilitiesRead" is not initialized in this constructor nor in any functions that it calls.
46 }
47
48 PhysicalFontFace::~PhysicalFontFace()
49 {
50 if (mpHbFace)
51 hb_face_destroy(mpHbFace);
** CID 1513720: Integer handling issues (NEGATIVE_RETURNS)
________________________________________________________________________________________________________
*** CID 1513720: Integer handling issues (NEGATIVE_RETURNS)
/sc/source/core/data/table6.cxx: 850 in ScTable::SearchAndReplace(const SvxSearchItem &, short &, int &, const ScMarkData &, ScRangeList &, rtl::OUString &, ScDocument *, bool &)()
844 TransliterationFlags::IGNORE_CASE |
845 TransliterationFlags::IGNORE_WIDTH;
846
847 pSearchText.reset( new utl::TextSearch( aSearchOptions ) );
848
849 if (nCommand == SvxSearchCmd::FIND)
>>> CID 1513720: Integer handling issues (NEGATIVE_RETURNS)
>>> "rCol" is passed to a parameter that cannot be negative.
850 bFound = Search(rSearchItem, rCol, rRow, rMark, rUndoStr, pUndoDoc);
851 else if (nCommand == SvxSearchCmd::FIND_ALL)
852 bFound = SearchAll(rSearchItem, rMark, rMatchedRanges, rUndoStr, pUndoDoc);
853 else if (nCommand == SvxSearchCmd::REPLACE)
854 bFound = Replace(rSearchItem, rCol, rRow, rMark, rUndoStr, pUndoDoc);
855 else if (nCommand == SvxSearchCmd::REPLACE_ALL)
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D1sev_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJiKPviyvkv8tgg4QA4UGC9cZNKMFPhMVsDd4q-2BzvpUfe2FsaXQgiXl8o9B3rvqrcWu-2FRuUDMtPjWSREL87GhPJRQIDqahJ-2BNK88S5zqLVFgoIX99ZKRrJ-2By-2FkaNPCAGyMp6vBXCc5j9Z80Sl7HabD5TbBZkFmPjOqYIX7NlhIzlWk-3D
More information about the LibreOffice
mailing list