New Defects reported by Coverity Scan for LibreOffice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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

5 new defect(s) introduced to LibreOffice found with Coverity Scan.


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


** CID 1504441:  Uninitialized members  (UNINIT_CTOR)
/sw/source/core/txtnode/fntcache.cxx: 123 in SwFntObj::SwFntObj(const SwSubFont &, unsigned long, const SwViewShell *)()


________________________________________________________________________________________________________
*** CID 1504441:  Uninitialized members  (UNINIT_CTOR)
/sw/source/core/txtnode/fntcache.cxx: 123 in SwFntObj::SwFntObj(const SwSubFont &, unsigned long, const SwViewShell *)()
117         m_bSymbol = RTL_TEXTENCODING_SYMBOL == m_aFont.GetCharSet();
118         m_bPaintBlank = ( LINESTYLE_NONE != m_aFont.GetUnderline()
119                      || LINESTYLE_NONE != m_aFont.GetOverline()
120                      || STRIKEOUT_NONE != m_aFont.GetStrikeout() )
121                      && !m_aFont.IsWordLineMode();
122         m_aFont.SetLanguage(rFont.GetLanguage());
>>>     CID 1504441:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "m_nPrtHangingBaseline" is not initialized in this constructor nor in any functions that it calls.
123     }
124     
125     SwFntObj::~SwFntObj()
126     {
127         if ( m_pScrFont != m_pPrtFont )
128             delete m_pScrFont;

** CID 1504440:  Uninitialized members  (UNINIT_CTOR)
/sc/source/core/data/queryiter.cxx: 1176 in ScQueryCellIteratorAccessSpecific<(ScQueryCellIteratorAccess)1>::SortedCacheIndexer::SortedCacheIndexer(const mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<(int)52, svl::SharedString>, mdds::mtv::noncopyable_managed_element_block<(int)53, EditTextObject>, mdds::mtv::noncopyable_managed_element_block<(int)54, ScFormulaCell>>, sc::CellStoreTrait> &, int, int, const ScSortedRangeCache *)()


________________________________________________________________________________________________________
*** CID 1504440:  Uninitialized members  (UNINIT_CTOR)
/sc/source/core/data/queryiter.cxx: 1176 in ScQueryCellIteratorAccessSpecific<(ScQueryCellIteratorAccess)1>::SortedCacheIndexer::SortedCacheIndexer(const mdds::mtv::soa::multi_type_vector<mdds::mtv::custom_block_func3<mdds::mtv::default_element_block<(int)52, svl::SharedString>, mdds::mtv::noncopyable_managed_element_block<(int)53, EditTextObject>, mdds::mtv::noncopyable_managed_element_block<(int)54, ScFormulaCell>>, sc::CellStoreTrait> &, int, int, const ScSortedRangeCache *)()
1170             const ScSortedRangeCache* cache )
1171             : mSortedRows( makeSortedRows( cache, startRow, endRow ))
1172             , mCells( cells )
1173             , mValid( false )
1174         {
1175             if(mSortedRows.empty())
>>>     CID 1504440:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mHighIndex" is not initialized in this constructor nor in any functions that it calls.
1176                 return;
1177             mLowIndex = 0;
1178             mHighIndex = mSortedRows.size() - 1;
1179             mValid = true;
1180         }
1181     

** CID 1504439:    (UNINIT_CTOR)
/sc/source/core/data/queryiter.cxx: 859 in ScQueryCellIteratorAccessSpecific<(ScQueryCellIteratorAccess)0>::ScQueryCellIteratorAccessSpecific(ScDocument &, ScInterpreterContext &, const ScQueryParam &)()
/sc/source/core/data/queryiter.cxx: 1070 in ScQueryCellIteratorAccessSpecific<(ScQueryCellIteratorAccess)1>::ScQueryCellIteratorAccessSpecific(ScDocument &, ScInterpreterContext &, const ScQueryParam &)()


________________________________________________________________________________________________________
*** CID 1504439:    (UNINIT_CTOR)
/sc/source/core/data/queryiter.cxx: 859 in ScQueryCellIteratorAccessSpecific<(ScQueryCellIteratorAccess)0>::ScQueryCellIteratorAccessSpecific(ScDocument &, ScInterpreterContext &, const ScQueryParam &)()
853         ::ScQueryCellIteratorAccessSpecific( ScDocument& rDocument,
854             ScInterpreterContext& rContext, const ScQueryParam& rParam )
855         : maParam( rParam )
856         , rDoc( rDocument )
857         , mrContext( rContext )
858     {
>>>     CID 1504439:    (UNINIT_CTOR)
>>>     Non-static class member "nRow" is not initialized in this constructor nor in any functions that it calls.
859     }
860     
861     void ScQueryCellIteratorAccessSpecific< ScQueryCellIteratorAccess::Direct >::InitPos()
862     {
863         nRow = maParam.nRow1;
864         if (maParam.bHasHeader && maParam.bByRow)
/sc/source/core/data/queryiter.cxx: 1070 in ScQueryCellIteratorAccessSpecific<(ScQueryCellIteratorAccess)1>::ScQueryCellIteratorAccessSpecific(ScDocument &, ScInterpreterContext &, const ScQueryParam &)()
1064         ::ScQueryCellIteratorAccessSpecific( ScDocument& rDocument,
1065             ScInterpreterContext& rContext, const ScQueryParam& rParam )
1066         : maParam( rParam )
1067         , rDoc( rDocument )
1068         , mrContext( rContext )
1069     {
>>>     CID 1504439:    (UNINIT_CTOR)
>>>     Non-static class member "sortedCachePosLast" is not initialized in this constructor nor in any functions that it calls.
1070     }
1071     
1072     void ScQueryCellIteratorAccessSpecific< ScQueryCellIteratorAccess::SortedCache >::SetSortedRangeCache(
1073         const ScSortedRangeCache& cache)
1074     {
1075         sortedCache = &cache;

** CID 1504438:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/font/fontmetric.cxx: 182 in ImplFontMetricData::ImplFontMetricData(const vcl::font::FontSelectPattern &)()


________________________________________________________________________________________________________
*** CID 1504438:  Uninitialized members  (UNINIT_CTOR)
/vcl/source/font/fontmetric.cxx: 182 in ImplFontMetricData::ImplFontMetricData(const vcl::font::FontSelectPattern &)()
176         , mnDStrikeoutOffset2( 0 )
177     {
178         // initialize the used font name
179         sal_Int32 nTokenPos = 0;
180         SetFamilyName( OUString(GetNextFontToken( rFontSelData.GetFamilyName(), nTokenPos )) );
181         SetStyleName( rFontSelData.GetStyleName() );
>>>     CID 1504438:  Uninitialized members  (UNINIT_CTOR)
>>>     Non-static class member "mnHangingBaseline" is not initialized in this constructor nor in any functions that it calls.
182     }
183     
184     void ImplFontMetricData::ImplInitTextLineSize( const OutputDevice* pDev )
185     {
186         tools::Long nDescent = mnDescent;
187         if ( nDescent <= 0 )

** CID 1504437:  Null pointer dereferences  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 1504437:  Null pointer dereferences  (NULL_RETURNS)
/sc/source/core/tool/rangecache.cxx: 119 in ScSortedRangeCache::ScSortedRangeCache(ScDocument *, const ScRange &, const ScQueryParam &, ScSortedRangeCacheMap &, ScInterpreterContext *)()
113             for (SCROW nRow = startRow; nRow <= endRow; ++nRow)
114             {
115                 ScRefCellValue cell(pDoc->GetRefCellValue(ScAddress(nCol, nRow, nTab)));
116                 if (ScQueryEvaluator::isQueryByString(entry, item, cell))
117                 {
118                     const svl::SharedString* sharedString = nullptr;
>>>     CID 1504437:  Null pointer dereferences  (NULL_RETURNS)
>>>     Dereferencing a pointer that might be "nullptr" "evaluator.mrTab" when calling "getCellString".
119                     OUString string = evaluator.getCellString(cell, nRow, entry, &sharedString);
120                     if (sharedString)
121                         string = sharedString->getString();
122                     rowData.push_back(RowData{ nRow, string });
123                 }
124             }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50ypSs1kiFPuCn2xFdlMIFBirii0zZ9j2-2F9F2XPBcBm2BNgi9duPy3v-2FzgFDd2LJ-2BDKI-3D6e2V_OTq2XUZbbipYjyLSo6GRo-2FpVxQ9OzkDINu9UTS-2FQhSdO0F0jQniitrGlNxDIzPJibYrL-2BtaiIBUT93ACZng-2F-2Fg8hG9TzGuEf-2F-2BgMM8MO5MAxsU9d97uL-2BH4816xN7R5m31YdsUgxZv6KVGZQanYSEQDCiej4TkeA1PW9cE-2BIK9ImCj51A1pTeF5-2FfA-2BlhPBLBPghan-2BuUrgVtwlVa63oyEyjzNEofAVAPO3lKfBlzk4-3D




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux