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



Hi,

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

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


** CID 704751:  Explicit null dereferenced  (FORWARD_NULL)
/sd/source/ui/func/fuoaprms.cxx: 660 in sd::FuObjectAnimationParameters::DoExecute(SfxRequest &)()

** CID 1202761:  Unchecked return value  (CHECKED_RETURN)
/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx: 827 in GtkSalGraphics::hitTestNativeControl(unsigned 
int, unsigned int, const Rectangle &, const Point &, bool &)()
/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx: 829 in GtkSalGraphics::hitTestNativeControl(unsigned 
int, unsigned int, const Rectangle &, const Point &, bool &)()
/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx: 834 in GtkSalGraphics::hitTestNativeControl(unsigned 
int, unsigned int, const Rectangle &, const Point &, bool &)()
/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx: 836 in GtkSalGraphics::hitTestNativeControl(unsigned 
int, unsigned int, const Rectangle &, const Point &, bool &)()

** CID 1265791:  Unchecked return value  (CHECKED_RETURN)
/oox/source/export/drawingml.cxx: 871 in oox::drawingml::DrawingML::WriteImage(const Graphic &, 
bool)()
/oox/source/export/drawingml.cxx: 877 in oox::drawingml::DrawingML::WriteImage(const Graphic &, 
bool)()

** CID 1265792:  Dereference after null check  (FORWARD_NULL)
/sw/source/core/text/itrtxt.hxx: 76 in SwTxtIter::SwTxtIter(SwTxtFrm *, SwTxtInfo *)()

** CID 1265793:  Dereference after null check  (FORWARD_NULL)
/sw/source/core/text/itrtxt.hxx: 176 in SwTxtMargin::SwTxtMargin(SwTxtFrm *, SwTxtSizeInfo *)()

** CID 1265794:  Dereference null return value  (NULL_RETURNS)
/sc/source/ui/app/scmod.cxx: 776 in ScModule::RecentFunctionsChanged()()

** CID 1265795:  Dereference null return value  (NULL_RETURNS)

** CID 1265796:  Dereference null return value  (NULL_RETURNS)

** CID 1265797:  Dereference null return value  (NULL_RETURNS)

** CID 1265798:  Dereference null return value  (NULL_RETURNS)

** CID 1265799:  Dereference null return value  (NULL_RETURNS)

** CID 1265800:  Dereference null return value  (NULL_RETURNS)
/sw/source/uibase/shells/textdrw.cxx: 75 in SwBaseShell::InsertURLButton(const rtl::OUString &, 
const rtl::OUString &, const rtl::OUString &)()

** CID 1265801:  Dereference null return value  (NULL_RETURNS)

** CID 1265802:  Dereference null return value  (NULL_RETURNS)

** CID 1265803:  Dereference null return value  (NULL_RETURNS)

** CID 1265804:  Dereference null return value  (NULL_RETURNS)

** CID 1265805:  Dereference null return value  (NULL_RETURNS)

** CID 1265806:  Dereference null return value  (NULL_RETURNS)

** CID 1265807:  Dereference null return value  (NULL_RETURNS)

** CID 1265808:  Dereference null return value  (NULL_RETURNS)


________________________________________________________________________________________________________
*** CID 704751:  Explicit null dereferenced  (FORWARD_NULL)
/sd/source/ui/func/fuoaprms.cxx: 660 in sd::FuObjectAnimationParameters::DoExecute(SfxRequest &)()
654                     pRunningObj = pObject1;
655                 }
656     
657                 DBG_ASSERT(pPath, "no curve found");
658     
659                 // push the running object to the end of the curve
    CID 704751:  Explicit null dereferenced  (FORWARD_NULL)
    Passing null pointer "pRunningObj" to "GetLogicRect", which dereferences it. (The 
dereference happens because this is a virtual function call.)
660                 Rectangle aCurRect(pRunningObj->GetLogicRect());
661                 Point     aCurCenter(aCurRect.Center());
662                 const ::basegfx::B2DPolyPolygon& rPolyPolygon = pPath->GetPathPoly();
663                 sal_uInt32 nNoOfPolygons(rPolyPolygon.count());
664                 const ::basegfx::B2DPolygon aPolygon(rPolyPolygon.getB2DPolygon(nNoOfPolygons - 
1L));
665                 sal_uInt32 nPoints(aPolygon.count());

________________________________________________________________________________________________________
*** CID 1202761:  Unchecked return value  (CHECKED_RETURN)
/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx: 827 in GtkSalGraphics::hitTestNativeControl(unsigned 
int, unsigned int, const Rectangle &, const Point &, bool &)()
821                     aForward.Move( aForward.GetWidth() / 2, 0 );
822             }
823     
824             if ( ( nPart == PART_BUTTON_UP ) || ( nPart == PART_BUTTON_LEFT ) )
825             {
826                 if ( has_backward )
    CID 1202761:  Unchecked return value  (CHECKED_RETURN)
    Calling "IsInside" without checking return value (as is done elsewhere 280 out of 322 
times).
827                     rIsInside |= aBackward.IsInside( aPos );
828                 if ( has_backward2 )
829                     rIsInside |= aForward.IsInside( aPos );
830             }
831             else
832             {
/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx: 829 in GtkSalGraphics::hitTestNativeControl(unsigned 
int, unsigned int, const Rectangle &, const Point &, bool &)()
823     
824             if ( ( nPart == PART_BUTTON_UP ) || ( nPart == PART_BUTTON_LEFT ) )
825             {
826                 if ( has_backward )
827                     rIsInside |= aBackward.IsInside( aPos );
828                 if ( has_backward2 )
    CID 1202761:  Unchecked return value  (CHECKED_RETURN)
    Calling "IsInside" without checking return value (as is done elsewhere 280 out of 322 
times).
829                     rIsInside |= aForward.IsInside( aPos );
830             }
831             else
832             {
833                 if ( has_forward )
834                     rIsInside |= aBackward.IsInside( aPos );
/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx: 834 in GtkSalGraphics::hitTestNativeControl(unsigned 
int, unsigned int, const Rectangle &, const Point &, bool &)()
828                 if ( has_backward2 )
829                     rIsInside |= aForward.IsInside( aPos );
830             }
831             else
832             {
833                 if ( has_forward )
    CID 1202761:  Unchecked return value  (CHECKED_RETURN)
    Calling "IsInside" without checking return value (as is done elsewhere 280 out of 322 
times).
834                     rIsInside |= aBackward.IsInside( aPos );
835                 if ( has_forward2 )
836                     rIsInside |= aForward.IsInside( aPos );
837             }
838             return true;
839         }
/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx: 836 in GtkSalGraphics::hitTestNativeControl(unsigned 
int, unsigned int, const Rectangle &, const Point &, bool &)()
830             }
831             else
832             {
833                 if ( has_forward )
834                     rIsInside |= aBackward.IsInside( aPos );
835                 if ( has_forward2 )
    CID 1202761:  Unchecked return value  (CHECKED_RETURN)
    Calling "IsInside" without checking return value (as is done elsewhere 280 out of 322 
times).
836                     rIsInside |= aForward.IsInside( aPos );
837             }
838             return true;
839         }
840     
841         if( IsNativeControlSupported(nType, nPart) )

________________________________________________________________________________________________________
*** CID 1265791:  Unchecked return value  (CHECKED_RETURN)
/oox/source/export/drawingml.cxx: 871 in oox::drawingml::DrawingML::WriteImage(const Graphic &, 
bool)()
865             {
866                 GraphicType aType = rGraphic.GetType();
867                 if ( aType == GRAPHIC_BITMAP || aType == GRAPHIC_GDIMETAFILE)
868                 {
869                     if ( aType == GRAPHIC_BITMAP )
870                     {
    CID 1265791:  Unchecked return value  (CHECKED_RETURN)
    Calling "Export" without checking return value (as is done elsewhere 8 out of 10 times).
871                         GraphicConverter::Export( aStream, rGraphic, CVT_PNG );
872                         sMediaType = "image/png";
873                         pExtension = ".png";
874                     }
875                     else
876                     {
/oox/source/export/drawingml.cxx: 877 in oox::drawingml::DrawingML::WriteImage(const Graphic &, 
bool)()
871                         GraphicConverter::Export( aStream, rGraphic, CVT_PNG );
872                         sMediaType = "image/png";
873                         pExtension = ".png";
874                     }
875                     else
876                     {
    CID 1265791:  Unchecked return value  (CHECKED_RETURN)
    Calling "Export" without checking return value (as is done elsewhere 8 out of 10 times).
877                         GraphicConverter::Export( aStream, rGraphic, CVT_EMF );
878                         sMediaType = "image/x-emf";
879                         pExtension = ".emf";
880                     }
881                 }
882                 else

________________________________________________________________________________________________________
*** CID 1265792:  Dereference after null check  (FORWARD_NULL)
/sw/source/core/text/itrtxt.hxx: 76 in SwTxtIter::SwTxtIter(SwTxtFrm *, SwTxtInfo *)()
70             , bOneBlock(false)
71             , bLastBlock(false)
72             , bLastCenter(false)
73             {}
74     public:
75         inline SwTxtIter( SwTxtFrm *pTxtFrm, SwTxtInfo *pTxtInf )
    CID 1265792:  Dereference after null check  (FORWARD_NULL)
    Comparing "pTxtFrm" to null implies that "pTxtFrm" might be null.
76             : SwAttrIter( pTxtFrm != NULL ? pTxtFrm->GetTxtNode() : NULL)
77             , bOneBlock(false)
78             , bLastBlock(false)
79             , bLastCenter(false)
80             {
81                 CtorInitTxtIter( pTxtFrm, pTxtInf );

________________________________________________________________________________________________________
*** CID 1265793:  Dereference after null check  (FORWARD_NULL)
/sw/source/core/text/itrtxt.hxx: 176 in SwTxtMargin::SwTxtMargin(SwTxtFrm *, SwTxtSizeInfo *)()
170             , nDropLines(0)
171             , nAdjust(0)
172             , mnTabLeft(0)
173             { }
174     public:
175         inline SwTxtMargin( SwTxtFrm *pTxtFrm, SwTxtSizeInfo *pTxtSizeInf )
    CID 1265793:  Dereference after null check  (FORWARD_NULL)
    Comparing "pTxtFrm" to null implies that "pTxtFrm" might be null.
176             : SwTxtIter( pTxtFrm != NULL ? pTxtFrm->GetTxtNode() : NULL)
177             {
178                 CtorInitTxtMargin( pTxtFrm, pTxtSizeInf );
179             }
180         inline SwTwips GetLeftMargin() const;
181         inline SwTwips Left() const;

________________________________________________________________________________________________________
*** CID 1265794:  Dereference null return value  (NULL_RETURNS)
/sc/source/ui/app/scmod.cxx: 776 in ScModule::RecentFunctionsChanged()()
770         sal_uInt16 nFuncListID = ScFunctionChildWindow::GetChildWindowId();
771     
772         //! notify all views
773         SfxViewFrame* pViewFrm = SfxViewFrame::Current();
774         if ( pViewFrm && pViewFrm->HasChildWindow(nFuncListID) )
775         {
    CID 1265794:  Dereference null return value  (NULL_RETURNS)
    Assigning: "pWnd" = null return value from "GetChildWindow".
776             ScFunctionChildWindow* pWnd = 
static_cast<ScFunctionChildWindow*>(pViewFrm->GetChildWindow( nFuncListID ));
777     
778             ScFunctionDockWin* pFuncList = static_cast<ScFunctionDockWin*>(pWnd->GetWindow());
779     
780             pFuncList->InitLRUList();
781         }

________________________________________________________________________________________________________
*** CID 1265795:  Dereference null return value  (NULL_RETURNS)
/sd/source/ui/view/drviews6.cxx: 346 in sd::DrawViewShell::GetBmpMaskState(SfxItemSet &)()
340         const SdrObject*    pObj = NULL;
341         sal_uInt16              nId = SvxBmpMaskChildWindow::GetChildWindowId();
342         bool                bEnable = false;
343     
344         if ( GetViewFrame()->HasChildWindow( nId ) )
345         {
    CID 1265795:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "this->GetViewFrame()->GetChildWindow(nId)" when 
calling "GetWindow".
346             SvxBmpMask* pDlg = static_cast<SvxBmpMask*>( GetViewFrame()->GetChildWindow( nId 
)->GetWindow() );
347     
348             if ( pDlg->NeedsColorList() )
349                 pDlg->SetColorList( GetDoc()->GetColorList() );
350         }
351     

________________________________________________________________________________________________________
*** CID 1265796:  Dereference null return value  (NULL_RETURNS)
/sc/source/ui/view/imapwrap.cxx: 36 in ScGetIMapDlg()()
30     SvxIMapDlg* ScGetIMapDlg()
31     {
32         //! pass view frame here and in SVXIMAPDLG()
33     
34         SfxViewFrame* pViewFrm = SfxViewFrame::Current();
35         if( pViewFrm && pViewFrm->HasChildWindow( SvxIMapDlgChildWindow::GetChildWindowId() ) )
    CID 1265796:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null 
"SfxViewFrame::Current()->GetChildWindow(SvxIMapDlgChildWindow::GetChildWindowId())" when 
calling "GetWindow".
36             return SVXIMAPDLG();
37         else
38             return NULL;
39     }
40     
41     void ScIMapDlgSet( const Graphic& rGraphic, const ImageMap* pImageMap,

________________________________________________________________________________________________________
*** CID 1265797:  Dereference null return value  (NULL_RETURNS)
/sd/source/ui/func/fudraw.cxx: 526 in sd::FuDraw::ForcePointer(const MouseEvent *)()
520                 mpWindow->SetPointer(Pointer(POINTER_FILL));
521             }
522             else if (!pHdl &&
523                      
mpViewShell->GetViewFrame()->HasChildWindow(SvxBmpMaskChildWindow::GetChildWindowId()))
524             {
525                 // pipette mode
    CID 1265797:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null 
"this->mpViewShell->GetViewFrame()->GetChildWindow(SvxBmpMaskChildWindow::GetChildWindowId())" 
when calling "GetWindow".
526                 SvxBmpMask* pMask = static_cast<SvxBmpMask*>( 
mpViewShell->GetViewFrame()->GetChildWindow(SvxBmpMaskChildWindow::GetChildWindowId())->GetWindow() 
);
527     
528                 if (pMask && pMask->IsEyedropping())
529                 {
530                     bDefPointer = false;
531                     mpWindow->SetPointer(Pointer(POINTER_REFHAND));

________________________________________________________________________________________________________
*** CID 1265798:  Dereference null return value  (NULL_RETURNS)
/sd/source/ui/view/drviews6.cxx: 307 in sd::DrawViewShell::ExecBmpMask(SfxRequest &)()
301                         }
302                     }
303     
304                     if( bCont )
305                     {
306                         const Graphic&  rOldGraphic = pNewObj->GetGraphic();
    CID 1265798:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null 
"this->GetViewFrame()->GetChildWindow(SvxBmpMaskChildWindow::GetChildWindowId())" when calling 
"GetWindow".
307                         const Graphic   aNewGraphic( static_cast<SvxBmpMask*>( 
GetViewFrame()->GetChildWindow(
308                                                      SvxBmpMaskChildWindow::GetChildWindowId() 
)->GetWindow() )->
309                                                      Mask( rOldGraphic ) );
310     
311                         if( aNewGraphic != rOldGraphic )
312                         {
/sd/source/ui/view/drviews6.cxx: 316 in sd::DrawViewShell::ExecBmpMask(SfxRequest &)()
310     
311                         if( aNewGraphic != rOldGraphic )
312                         {
313                             SdrPageView* pPV = mpDrawView->GetSdrPageView();
314     
315                             pNewObj->SetEmptyPresObj( false );
    CID 1265798:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null 
"this->GetViewFrame()->GetChildWindow(SvxBmpMaskChildWindow::GetChildWindowId())" when calling 
"GetWindow".
316                             pNewObj->SetGraphic( static_cast<SvxBmpMask*>( 
GetViewFrame()->GetChildWindow(
317                                                  SvxBmpMaskChildWindow::GetChildWindowId() 
)->GetWindow() )->
318                                                  Mask( pNewObj->GetGraphic() ) );
319     
320                             OUString aStr( mpDrawView->GetDescriptionOfMarkedObjects() );
321                             aStr += " " + SD_RESSTR(STR_EYEDROPPER);

________________________________________________________________________________________________________
*** CID 1265799:  Dereference null return value  (NULL_RETURNS)
/svx/source/dialog/imapdlg.cxx: 114 in SvxIMapDlgChildWindow::UpdateIMapDlg(const Graphic &, const 
ImageMap *, const std::vector<rtl::OUString, std::allocator<rtl::OUString>> *, void *)()
108     
109     void SvxIMapDlgChildWindow::UpdateIMapDlg( const Graphic& rGraphic, const ImageMap* 
pImageMap,
110                                                const TargetList* pTargetList, void* pEditingObj 
)
111     {
112         if ( SfxViewFrame::Current() &&
113              SfxViewFrame::Current()->HasChildWindow( SvxIMapDlgChildWindow::GetChildWindowId() 
) )
    CID 1265799:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null 
"SfxViewFrame::Current()->GetChildWindow(SvxIMapDlgChildWindow::GetChildWindowId())" when 
calling "GetWindow".
114             SVXIMAPDLG()->UpdateLink( rGraphic, pImageMap, pTargetList, pEditingObj );
115     }
116     
117     extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeStatusBar(vcl::Window *pParent, 
VclBuilder::stringmap &)
118     {
119         return new StatusBar(pParent);

________________________________________________________________________________________________________
*** CID 1265800:  Dereference null return value  (NULL_RETURNS)
/sw/source/uibase/shells/textdrw.cxx: 75 in SwBaseShell::InsertURLButton(const rtl::OUString &, 
const rtl::OUString &, const rtl::OUString &)()
69             rSh.MoveCreate(aStartPos + aEndPos);
70             rSh.EndCreate(SDRCREATE_FORCEEND);
71     
72             const SdrMarkList& rMarkList = pSdrView->GetMarkedObjectList();
73             if (rMarkList.GetMark(0))
74             {
    CID 1265800:  Dereference null return value  (NULL_RETURNS)
    Assigning: "pUnoCtrl" = null return value from "rttiCast".
75                 SdrUnoObj* pUnoCtrl = PTR_CAST(SdrUnoObj, 
rMarkList.GetMark(0)->GetMarkedSdrObj());
76                 uno::Reference< awt::XControlModel >  xControlModel = 
pUnoCtrl->GetUnoControlModel();
77     
78                 OSL_ENSURE( xControlModel.is(), "UNO-Control without Model" );
79                 if( !xControlModel.is() )
80                     return;

________________________________________________________________________________________________________
*** CID 1265801:  Dereference null return value  (NULL_RETURNS)
/sd/source/ui/view/drviews6.cxx: 154 in sd::DrawViewShell::ExecAnimationWin(SfxRequest &)()
148             case SID_ANIMATOR_ADD:
149             case SID_ANIMATOR_CREATE:
150             {
151                 AnimationWindow* pAnimWin;
152                 sal_uInt16 nId = AnimationChildWindow::GetChildWindowId();
153     
    CID 1265801:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "this->GetViewFrame()->GetChildWindow(nId)" when 
calling "GetWindow".
154                 pAnimWin = static_cast<AnimationWindow*>(
155                     GetViewFrame()->GetChildWindow(nId)->GetWindow());
156     
157                 if ( pAnimWin )
158                 {
159                     if( nSId == SID_ANIMATOR_ADD )

________________________________________________________________________________________________________
*** CID 1265802:  Dereference null return value  (NULL_RETURNS)
/sd/source/ui/dlg/sdtreelb.cxx: 1170 in SdPageObjsTLB::DoDrag()()
1164     
1165     /**
1166      * Begin drag
1167      */
1168     void SdPageObjsTLB::DoDrag()
1169     {
    CID 1265802:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "this->mpFrame->GetChildWindow(10366)" when 
calling "GetContextWindow".
1170         mpDropNavWin = ( mpFrame->HasChildWindow( SID_NAVIGATOR ) ) ?
1171                       static_cast<SdNavigatorWin*>( mpFrame->GetChildWindow( SID_NAVIGATOR 
)->GetContextWindow( SD_MOD() ) ) :
1172                       NULL;
1173     
1174         if( mpDropNavWin )
1175         {

________________________________________________________________________________________________________
*** CID 1265803:  Dereference null return value  (NULL_RETURNS)
/sd/source/ui/dlg/sdtreelb.cxx: 1262 in SdPageObjsTLB::OnDragFinished(unsigned char)()
1256     }
1257     
1258     void SdPageObjsTLB::OnDragFinished( sal_uInt8 )
1259     {
1260         if( mpFrame->HasChildWindow( SID_NAVIGATOR ) )
1261         {
    CID 1265803:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "this->mpFrame->GetChildWindow(10366)" when 
calling "GetContextWindow".
1262             SdNavigatorWin* pNewNavWin = static_cast<SdNavigatorWin*>( 
mpFrame->GetChildWindow( SID_NAVIGATOR )->GetContextWindow( SD_MOD() ) );
1263     
1264             if( mpDropNavWin == pNewNavWin)
1265             {
1266                 MouseEvent aMEvt( mpDropNavWin->GetPointerPosPixel() );
1267                 SvTreeListBox::MouseButtonUp( aMEvt );

________________________________________________________________________________________________________
*** CID 1265804:  Dereference null return value  (NULL_RETURNS)
/sc/source/ui/drawfunc/drawsh4.cxx: 44 in ScDrawShell::GetFormTextState(SfxItemSet &)()
38         ScDrawView*         pDrView     = pViewData->GetScDrawView();
39         const SdrMarkList&  rMarkList   = pDrView->GetMarkedObjectList();
40         sal_uInt16              nId = SvxFontWorkChildWindow::GetChildWindowId();
41     
42         SfxViewFrame* pViewFrm = pViewData->GetViewShell()->GetViewFrame();
43         if ( pViewFrm->HasChildWindow(nId) )
    CID 1265804:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "pViewFrm->GetChildWindow(nId)" when calling 
"GetWindow".
44             pDlg = static_cast<SvxFontWorkDialog*>(pViewFrm->GetChildWindow(nId)->GetWindow());
45     
46         if ( rMarkList.GetMarkCount() == 1 )
47             pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
48     
49         const SdrTextObj* pTextObj = dynamic_cast< const SdrTextObj* >(pObj);

________________________________________________________________________________________________________
*** CID 1265805:  Dereference null return value  (NULL_RETURNS)
/sw/source/uibase/shells/drwtxtsh.cxx: 248 in SwDrawTextShell::GetFormTextState(SfxItemSet &)()
242         SvxFontWorkDialog* pDlg = NULL;
243     
244         const sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId();
245     
246         SfxViewFrame* pVFrame = GetView().GetViewFrame();
247         if ( pVFrame->HasChildWindow(nId) )
    CID 1265805:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "pVFrame->GetChildWindow(nId)" when calling 
"GetWindow".
248             pDlg = static_cast<SvxFontWorkDialog*>(pVFrame->GetChildWindow(nId)->GetWindow());
249     
250         if ( rMarkList.GetMarkCount() == 1 )
251             pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
252     
253         const SdrTextObj* pTextObj = dynamic_cast< const SdrTextObj* >(pObj);

________________________________________________________________________________________________________
*** CID 1265806:  Dereference null return value  (NULL_RETURNS)
/sd/source/ui/dlg/sdtreelb.cxx: 1124 in SdPageObjsTLB::StartDrag(signed char, const Point &)()
1118         (void)rPosPixel;
1119     
1120         SdNavigatorWin* pNavWin = NULL;
1121         SvTreeListEntry* pEntry = GetEntry(rPosPixel);
1122     
1123         if( mpFrame->HasChildWindow( SID_NAVIGATOR ) )
    CID 1265806:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "this->mpFrame->GetChildWindow(10366)" when 
calling "GetContextWindow".
1124             pNavWin = static_cast<SdNavigatorWin*>( mpFrame->GetChildWindow( SID_NAVIGATOR 
)->GetContextWindow( SD_MOD() ) );
1125     
1126         if (pEntry != NULL
1127             && pNavWin !=NULL
1128             && pNavWin == mpParent
1129             && pNavWin->GetNavigatorDragType() != NAVIGATOR_DRAGTYPE_NONE )

________________________________________________________________________________________________________
*** CID 1265807:  Dereference null return value  (NULL_RETURNS)
/sc/source/ui/drawfunc/drtxtob2.cxx: 212 in ScDrawTextObjectBar::GetFormTextState(SfxItemSet &)()
206         ScDrawView*         pDrView     = pViewData->GetView()->GetScDrawView();
207         const SdrMarkList&  rMarkList   = pDrView->GetMarkedObjectList();
208         sal_uInt16              nId = SvxFontWorkChildWindow::GetChildWindowId();
209     
210         SfxViewFrame* pViewFrm = pViewData->GetViewShell()->GetViewFrame();
211         if ( pViewFrm->HasChildWindow(nId) )
    CID 1265807:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "pViewFrm->GetChildWindow(nId)" when calling 
"GetWindow".
212             pDlg = static_cast<SvxFontWorkDialog*>(pViewFrm->GetChildWindow(nId)->GetWindow());
213     
214         if ( rMarkList.GetMarkCount() == 1 )
215             pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
216     
217         const SdrTextObj* pTextObj = dynamic_cast< const SdrTextObj* >(pObj);

________________________________________________________________________________________________________
*** CID 1265808:  Dereference null return value  (NULL_RETURNS)
/sd/source/ui/view/drviews6.cxx: 96 in sd::DrawViewShell::GetFormTextState(SfxItemSet &)()
90         const SdrObject* pObj = NULL;
91         SvxFontWorkDialog* pDlg = NULL;
92     
93         sal_uInt16 nId = SvxFontWorkChildWindow::GetChildWindowId();
94     
95         if ( GetViewFrame()->HasChildWindow(nId) )
    CID 1265808:  Dereference null return value  (NULL_RETURNS)
    Dereferencing a pointer that might be null "this->GetViewFrame()->GetChildWindow(nId)" when 
calling "GetWindow".
96             pDlg = 
static_cast<SvxFontWorkDialog*>(GetViewFrame()->GetChildWindow(nId)->GetWindow());
97     
98         if ( rMarkList.GetMarkCount() == 1 )
99             pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
100     
101         const SdrTextObj* pTextObj = dynamic_cast< const SdrTextObj* >(pObj);


________________________________________________________________________________________________________
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


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.