Hi,
Please find the latest report on new defect(s) introduced to LibreOffice found with Coverity Scan.
89 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 20 of 89 defect(s)
** CID 1302698: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1647 in GtkSalGraphics::updateSettings(AllSettings
&)()
________________________________________________________________________________________________________
*** CID 1302698: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1647 in GtkSalGraphics::updateSettings(AllSettings
&)()
1641 case PANGO_STRETCH_ULTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_ULTRA_CONDENSED;break;
1642 case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_EXTRA_CONDENSED;break;
1643 case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = WIDTH_CONDENSED;break;
1644 case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = WIDTH_SEMI_CONDENSED;break;
1645 case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = WIDTH_NORMAL;break;
1646 case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = WIDTH_SEMI_EXPANDED;break;
CID 1302698: Code maintainability issues (UNUSED_VALUE)
Assigning value "WIDTH_EXPANDED" to "aInfo.m_eWidth" here, but that stored value is
overwritten before it can be used.
1647 case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = WIDTH_EXPANDED;break;
1648 case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = WIDTH_EXTRA_EXPANDED;break;
1649 case PANGO_STRETCH_ULTRA_EXPANDED: aInfo.m_eWidth = WIDTH_ULTRA_EXPANDED;break;
1650 }
1651 aInfo.m_eWidth = WIDTH_ULTRA_CONDENSED;
1652
** CID 1302697: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1645 in GtkSalGraphics::updateSettings(AllSettings
&)()
________________________________________________________________________________________________________
*** CID 1302697: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1645 in GtkSalGraphics::updateSettings(AllSettings
&)()
1639 switch( eStretch )
1640 {
1641 case PANGO_STRETCH_ULTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_ULTRA_CONDENSED;break;
1642 case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_EXTRA_CONDENSED;break;
1643 case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = WIDTH_CONDENSED;break;
1644 case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = WIDTH_SEMI_CONDENSED;break;
CID 1302697: Code maintainability issues (UNUSED_VALUE)
Assigning value "WIDTH_NORMAL" to "aInfo.m_eWidth" here, but that stored value is
overwritten before it can be used.
1645 case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = WIDTH_NORMAL;break;
1646 case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = WIDTH_SEMI_EXPANDED;break;
1647 case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = WIDTH_EXPANDED;break;
1648 case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = WIDTH_EXTRA_EXPANDED;break;
1649 case PANGO_STRETCH_ULTRA_EXPANDED: aInfo.m_eWidth = WIDTH_ULTRA_EXPANDED;break;
1650 }
** CID 1302696: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1642 in GtkSalGraphics::updateSettings(AllSettings
&)()
________________________________________________________________________________________________________
*** CID 1302696: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1642 in GtkSalGraphics::updateSettings(AllSettings
&)()
1636 else
1637 aInfo.m_eWeight = WEIGHT_ULTRABOLD;
1638 // set width
1639 switch( eStretch )
1640 {
1641 case PANGO_STRETCH_ULTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_ULTRA_CONDENSED;break;
CID 1302696: Code maintainability issues (UNUSED_VALUE)
Assigning value "WIDTH_EXTRA_CONDENSED" to "aInfo.m_eWidth" here, but that stored value is
overwritten before it can be used.
1642 case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_EXTRA_CONDENSED;break;
1643 case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = WIDTH_CONDENSED;break;
1644 case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = WIDTH_SEMI_CONDENSED;break;
1645 case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = WIDTH_NORMAL;break;
1646 case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = WIDTH_SEMI_EXPANDED;break;
1647 case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = WIDTH_EXPANDED;break;
** CID 1302695: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1649 in GtkSalGraphics::updateSettings(AllSettings
&)()
________________________________________________________________________________________________________
*** CID 1302695: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1649 in GtkSalGraphics::updateSettings(AllSettings
&)()
1643 case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = WIDTH_CONDENSED;break;
1644 case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = WIDTH_SEMI_CONDENSED;break;
1645 case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = WIDTH_NORMAL;break;
1646 case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = WIDTH_SEMI_EXPANDED;break;
1647 case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = WIDTH_EXPANDED;break;
1648 case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = WIDTH_EXTRA_EXPANDED;break;
CID 1302695: Code maintainability issues (UNUSED_VALUE)
Assigning value "WIDTH_ULTRA_EXPANDED" to "aInfo.m_eWidth" here, but that stored value is
overwritten before it can be used.
1649 case PANGO_STRETCH_ULTRA_EXPANDED: aInfo.m_eWidth = WIDTH_ULTRA_EXPANDED;break;
1650 }
1651 aInfo.m_eWidth = WIDTH_ULTRA_CONDENSED;
1652
1653 #if OSL_DEBUG_LEVEL > 1
1654 fprintf( stderr, "font name BEFORE system match: \"%s\"\n", aFamily.getStr() );
** CID 1302694: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1644 in GtkSalGraphics::updateSettings(AllSettings
&)()
________________________________________________________________________________________________________
*** CID 1302694: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1644 in GtkSalGraphics::updateSettings(AllSettings
&)()
1638 // set width
1639 switch( eStretch )
1640 {
1641 case PANGO_STRETCH_ULTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_ULTRA_CONDENSED;break;
1642 case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_EXTRA_CONDENSED;break;
1643 case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = WIDTH_CONDENSED;break;
CID 1302694: Code maintainability issues (UNUSED_VALUE)
Assigning value "WIDTH_SEMI_CONDENSED" to "aInfo.m_eWidth" here, but that stored value is
overwritten before it can be used.
1644 case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = WIDTH_SEMI_CONDENSED;break;
1645 case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = WIDTH_NORMAL;break;
1646 case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = WIDTH_SEMI_EXPANDED;break;
1647 case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = WIDTH_EXPANDED;break;
1648 case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = WIDTH_EXTRA_EXPANDED;break;
1649 case PANGO_STRETCH_ULTRA_EXPANDED: aInfo.m_eWidth = WIDTH_ULTRA_EXPANDED;break;
** CID 1302693: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1646 in GtkSalGraphics::updateSettings(AllSettings
&)()
________________________________________________________________________________________________________
*** CID 1302693: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1646 in GtkSalGraphics::updateSettings(AllSettings
&)()
1640 {
1641 case PANGO_STRETCH_ULTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_ULTRA_CONDENSED;break;
1642 case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_EXTRA_CONDENSED;break;
1643 case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = WIDTH_CONDENSED;break;
1644 case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = WIDTH_SEMI_CONDENSED;break;
1645 case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = WIDTH_NORMAL;break;
CID 1302693: Code maintainability issues (UNUSED_VALUE)
Assigning value "WIDTH_SEMI_EXPANDED" to "aInfo.m_eWidth" here, but that stored value is
overwritten before it can be used.
1646 case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = WIDTH_SEMI_EXPANDED;break;
1647 case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = WIDTH_EXPANDED;break;
1648 case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = WIDTH_EXTRA_EXPANDED;break;
1649 case PANGO_STRETCH_ULTRA_EXPANDED: aInfo.m_eWidth = WIDTH_ULTRA_EXPANDED;break;
1650 }
1651 aInfo.m_eWidth = WIDTH_ULTRA_CONDENSED;
** CID 1302692: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1648 in GtkSalGraphics::updateSettings(AllSettings
&)()
________________________________________________________________________________________________________
*** CID 1302692: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1648 in GtkSalGraphics::updateSettings(AllSettings
&)()
1642 case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_EXTRA_CONDENSED;break;
1643 case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = WIDTH_CONDENSED;break;
1644 case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = WIDTH_SEMI_CONDENSED;break;
1645 case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = WIDTH_NORMAL;break;
1646 case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = WIDTH_SEMI_EXPANDED;break;
1647 case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = WIDTH_EXPANDED;break;
CID 1302692: Code maintainability issues (UNUSED_VALUE)
Assigning value "WIDTH_EXTRA_EXPANDED" to "aInfo.m_eWidth" here, but that stored value is
overwritten before it can be used.
1648 case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = WIDTH_EXTRA_EXPANDED;break;
1649 case PANGO_STRETCH_ULTRA_EXPANDED: aInfo.m_eWidth = WIDTH_ULTRA_EXPANDED;break;
1650 }
1651 aInfo.m_eWidth = WIDTH_ULTRA_CONDENSED;
1652
1653 #if OSL_DEBUG_LEVEL > 1
** CID 1302691: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1643 in GtkSalGraphics::updateSettings(AllSettings
&)()
________________________________________________________________________________________________________
*** CID 1302691: Code maintainability issues (UNUSED_VALUE)
/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx: 1643 in GtkSalGraphics::updateSettings(AllSettings
&)()
1637 aInfo.m_eWeight = WEIGHT_ULTRABOLD;
1638 // set width
1639 switch( eStretch )
1640 {
1641 case PANGO_STRETCH_ULTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_ULTRA_CONDENSED;break;
1642 case PANGO_STRETCH_EXTRA_CONDENSED: aInfo.m_eWidth =
WIDTH_EXTRA_CONDENSED;break;
CID 1302691: Code maintainability issues (UNUSED_VALUE)
Assigning value "WIDTH_CONDENSED" to "aInfo.m_eWidth" here, but that stored value is
overwritten before it can be used.
1643 case PANGO_STRETCH_CONDENSED: aInfo.m_eWidth = WIDTH_CONDENSED;break;
1644 case PANGO_STRETCH_SEMI_CONDENSED: aInfo.m_eWidth = WIDTH_SEMI_CONDENSED;break;
1645 case PANGO_STRETCH_NORMAL: aInfo.m_eWidth = WIDTH_NORMAL;break;
1646 case PANGO_STRETCH_SEMI_EXPANDED: aInfo.m_eWidth = WIDTH_SEMI_EXPANDED;break;
1647 case PANGO_STRETCH_EXPANDED: aInfo.m_eWidth = WIDTH_EXPANDED;break;
1648 case PANGO_STRETCH_EXTRA_EXPANDED: aInfo.m_eWidth = WIDTH_EXTRA_EXPANDED;break;
** CID 1302690: Uninitialized members (UNINIT_CTOR)
/vcl/source/outdev/outdevstate.cxx: 45 in OutDevState::OutDevState()()
________________________________________________________________________________________________________
*** CID 1302690: Uninitialized members (UNINIT_CTOR)
/vcl/source/outdev/outdevstate.cxx: 45 in OutDevState::OutDevState()()
39 #include "salgdi.hxx"
40 #include "sallayout.hxx"
41
42 OutDevState::OutDevState() :
43 mnFlags(PushFlags::NONE)
44 {
CID 1302690: Uninitialized members (UNINIT_CTOR)
Non-static class member "meTextLanguage" is not initialized in this constructor nor in any
functions that it calls.
45 }
46
47 OutDevState::~OutDevState()
48 {
49 if ( mnFlags & PushFlags::LINECOLOR )
50 delete mpLineColor;
** CID 1302689: Uninitialized members (UNINIT_CTOR)
/vcl/source/window/splitwin.cxx: 104 in ImplSplitItem::ImplSplitItem()()
________________________________________________________________________________________________________
*** CID 1302689: Uninitialized members (UNINIT_CTOR)
/vcl/source/window/splitwin.cxx: 104 in ImplSplitItem::ImplSplitItem()()
98 bool mbCalcPix;
99 };
100
101 ImplSplitItem::ImplSplitItem() :
102 mpSet( NULL )
103 {
CID 1302689: Uninitialized members (UNINIT_CTOR)
Non-static class member "mnMaxSize" is not initialized in this constructor nor in any
functions that it calls.
104 }
105
106 ImplSplitItem::~ImplSplitItem()
107 {
108 dispose();
109 }
** CID 1302688: Resource leaks (RESOURCE_LEAK)
/sc/qa/unit/ucalc.cxx: 5926 in <unnamed>::testDataBarLengthImpl(ScDocument *,
<unnamed>::ScDataBarLengthData *, const ScRange &, double, ScColorScaleEntryType, double,
ScColorScaleEntryType, double, databar::ScAxisPosition)()
________________________________________________________________________________________________________
*** CID 1302688: Resource leaks (RESOURCE_LEAK)
/sc/qa/unit/ucalc.cxx: 5926 in <unnamed>::testDataBarLengthImpl(ScDocument *,
<unnamed>::ScDataBarLengthData *, const ScRange &, double, ScColorScaleEntryType, double,
ScColorScaleEntryType, double, databar::ScAxisPosition)()
5920 for (size_t i = 0; pData[i].nLength != -200; ++i)
5921 {
5922 ScDataBarInfo* pInfo = pDatabar->GetDataBarInfo(ScAddress(nCol, i, 0));
5923 CPPUNIT_ASSERT(pInfo);
5924 ASSERT_DOUBLES_EQUAL(pData[i].nLength, pInfo->mnLength);
5925 ASSERT_DOUBLES_EQUAL(nZeroPos, pInfo->mnZero);
CID 1302688: Resource leaks (RESOURCE_LEAK)
Variable "pInfo" going out of scope leaks the storage it points to.
5926 }
5927 delete pFormat;
5928 }
5929
5930 }
5931
** CID 1302687: Null pointer dereferences (NULL_RETURNS)
/sw/source/core/layout/flycnt.cxx: 1244 in SwFlyAtCntFrm::SetAbsPos(const Point &)()
________________________________________________________________________________________________________
*** CID 1302687: Null pointer dereferences (NULL_RETURNS)
/sw/source/core/layout/flycnt.cxx: 1244 in SwFlyAtCntFrm::SetAbsPos(const Point &)()
1238 // which we're going to search now.
1239 const SwContentFrm *pOriginal = pCnt;
1240 const SwContentFrm *pFollow = pCnt;
1241 while ( pCnt->IsFollow() )
1242 {
1243 do
CID 1302687: Null pointer dereferences (NULL_RETURNS)
Assigning: "pCnt" = null return value from "GetPrevContentFrm".
1244 { pCnt = pCnt->GetPrevContentFrm();
1245 } while ( pCnt->GetFollow() != pFollow );
1246 pFollow = pCnt;
1247 }
1248 SwTwips nDiff = 0;
1249 do
** CID 1302682: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/gradient.cxx: 611 in OutputDevice::DrawLinearGradientToMetafile(const Rectangle
&, const Gradient &)()
________________________________________________________________________________________________________
*** CID 1302682: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/gradient.cxx: 611 in OutputDevice::DrawLinearGradientToMetafile(const Rectangle
&, const Gradient &)()
605 }
606 }
607
608 void OutputDevice::DrawLinearGradientToMetafile( const Rectangle& rRect,
609 const Gradient& rGradient )
610 {
CID 1302682: Null pointer dereferences (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <vcl::Window *>(this)" can return "NULL".
611 assert(!dynamic_cast<vcl::Window*>(this) ||
!dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
612
613 // get BoundRect of rotated rectangle
614 Rectangle aRect;
615 Point aCenter;
616 sal_uInt16 nAngle = rGradient.GetAngle() % 3600;
** CID 1302681: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/bitmap.cxx: 495 in OutputDevice::DrawDeviceBitmap(const Point &, const Size &,
const Point &, const Size &, BitmapEx &)()
________________________________________________________________________________________________________
*** CID 1302681: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/bitmap.cxx: 495 in OutputDevice::DrawDeviceBitmap(const Point &, const Size &,
const Point &, const Size &, BitmapEx &)()
489 }
490
491 void OutputDevice::DrawDeviceBitmap( const Point& rDestPt, const Size& rDestSize,
492 const Point& rSrcPtPixel, const Size& rSrcSizePixel,
493 BitmapEx& rBitmapEx )
494 {
CID 1302681: Null pointer dereferences (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <vcl::Window *>(this)" can return "NULL".
495 assert(!dynamic_cast<vcl::Window*>(this) ||
!dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
496
497 if (rBitmapEx.IsAlpha())
498 {
499 DrawDeviceAlphaBitmap(rBitmapEx.GetBitmap(), rBitmapEx.GetAlpha(), rDestPt,
rDestSize, rSrcPtPixel, rSrcSizePixel);
500 }
** CID 1302680: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/polyline.cxx: 34 in OutputDevice::DrawPolyLine(const Polygon &)()
________________________________________________________________________________________________________
*** CID 1302680: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/polyline.cxx: 34 in OutputDevice::DrawPolyLine(const Polygon &)()
28 #include <vcl/window.hxx>
29
30 #include "salgdi.hxx"
31
32 void OutputDevice::DrawPolyLine( const Polygon& rPoly )
33 {
CID 1302680: Null pointer dereferences (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <vcl::Window *>(this)" can return "NULL".
34 assert(!dynamic_cast<vcl::Window*>(this) ||
!dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
35
36 if( mpMetaFile )
37 mpMetaFile->AddAction( new MetaPolyLineAction( rPoly ) );
38
39 sal_uInt16 nPoints = rPoly.GetSize();
** CID 1302679: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/text.cxx: 1169 in OutputDevice::DrawStretchText(const Point &, unsigned long,
const rtl::OUString &, int, int)()
________________________________________________________________________________________________________
*** CID 1302679: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/text.cxx: 1169 in OutputDevice::DrawStretchText(const Point &, unsigned long,
const rtl::OUString &, int, int)()
1163 }
1164
1165 void OutputDevice::DrawStretchText( const Point& rStartPt, sal_uLong nWidth,
1166 const OUString& rStr,
1167 sal_Int32 nIndex, sal_Int32 nLen)
1168 {
CID 1302679: Null pointer dereferences (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <vcl::Window *>(this)" can return "NULL".
1169 assert(!dynamic_cast<vcl::Window*>(this) ||
!dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
1170
1171 if(nIndex < 0 || nIndex == 0x0FFFF || nLen == 0x0FFFF)
1172 {
1173 SAL_INFO("sal.rtl.xub",
1174 "DrawStretchText Suspicious arguments nIndex:" << nIndex << " nLen:" <<
nLen);
** CID 1302678: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/wallpaper.cxx: 57 in OutputDevice::DrawWallpaper(long, long, long, long, const
Wallpaper &)()
________________________________________________________________________________________________________
*** CID 1302678: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/wallpaper.cxx: 57 in OutputDevice::DrawWallpaper(long, long, long, long, const
Wallpaper &)()
51 }
52
53 void OutputDevice::DrawWallpaper( long nX, long nY,
54 long nWidth, long nHeight,
55 const Wallpaper& rWallpaper )
56 {
CID 1302678: Null pointer dereferences (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <vcl::Window *>(this)" can return "NULL".
57 assert(!dynamic_cast<vcl::Window*>(this) ||
!dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
58
59 if( rWallpaper.IsBitmap() )
60 DrawBitmapWallpaper( nX, nY, nWidth, nHeight, rWallpaper );
61 else if( rWallpaper.IsGradient() )
62 DrawGradientWallpaper( nX, nY, nWidth, nHeight, rWallpaper );
** CID 1302677: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/line.cxx: 38 in OutputDevice::DrawLine(const Point &, const Point &, const
LineInfo &)()
________________________________________________________________________________________________________
*** CID 1302677: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/line.cxx: 38 in OutputDevice::DrawLine(const Point &, const Point &, const
LineInfo &)()
32 #include <basegfx/polygon/b2dpolypolygontools.hxx>
33 #include <basegfx/polygon/b2dlinegeometry.hxx>
34
35 void OutputDevice::DrawLine( const Point& rStartPt, const Point& rEndPt,
36 const LineInfo& rLineInfo )
37 {
CID 1302677: Null pointer dereferences (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <vcl::Window *>(this)" can return "NULL".
38 assert(!dynamic_cast<vcl::Window*>(this) ||
!dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
39
40 if ( rLineInfo.IsDefault() )
41 {
42 DrawLine( rStartPt, rEndPt );
43 return;
** CID 1302676: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/gradient.cxx: 35 in OutputDevice::DrawGradient(const Rectangle &, const Gradient
&)()
________________________________________________________________________________________________________
*** CID 1302676: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/gradient.cxx: 35 in OutputDevice::DrawGradient(const Rectangle &, const Gradient
&)()
29
30 #define GRADIENT_DEFAULT_STEPCOUNT 0
31
32 void OutputDevice::DrawGradient( const Rectangle& rRect,
33 const Gradient& rGradient )
34 {
CID 1302676: Null pointer dereferences (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <vcl::Window *>(this)" can return "NULL".
35 assert(!dynamic_cast<vcl::Window*>(this) ||
!dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
36
37 // Convert rectangle to a tools::PolyPolygon by first converting to a Polygon
38 Polygon aPolygon ( rRect );
39 tools::PolyPolygon aPolyPoly ( aPolygon );
40
** CID 1302675: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/transparent.cxx: 221 in OutputDevice::DrawTransparent(const
basegfx::B2DPolyPolygon &, double)()
________________________________________________________________________________________________________
*** CID 1302675: Null pointer dereferences (FORWARD_NULL)
/vcl/source/outdev/transparent.cxx: 221 in OutputDevice::DrawTransparent(const
basegfx::B2DPolyPolygon &, double)()
215 // Caution: This method is nearly the same as
216 // void OutputDevice::DrawPolyPolygon( const basegfx::B2DPolyPolygon& rB2DPolyPoly )
217 // so when changes are made here do not forget to make changes there, too
218
219 void OutputDevice::DrawTransparent( const basegfx::B2DPolyPolygon& rB2DPolyPoly, double
fTransparency)
220 {
CID 1302675: Null pointer dereferences (FORWARD_NULL)
Dynamic cast to pointer "dynamic_cast <vcl::Window *>(this)" can return "NULL".
221 assert(!dynamic_cast<vcl::Window*>(this) ||
!dynamic_cast<vcl::Window*>(this)->SupportsDoubleBuffering());
222
223 // AW: Do NOT paint empty PolyPolygons
224 if(!rB2DPolyPoly.count())
225 return;
226
________________________________________________________________________________________________________
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
- New Defects reported by Coverity Scan for LibreOffice · scan-admin
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.