https://bugs.documentfoundation.org/show_bug.cgi?id=99264

            Bug ID: 99264
           Summary: Crash: SfxDispatcher::ExecuteList
           Product: LibreOffice
           Version: 5.1.0.0.alpha1
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Draw
          Assignee: [email protected]
          Reporter: [email protected]

Caused by change 51d7f466df85f679f54e4e690f8b5e602192eb7b the SfxPoolItems are
handed over as a std::initializer_list<SfxPoolItem const*> args, but there seem
to be cases where 'nullptr' values are involved, that leads to crashes. Stack
is:

>       sfxlo.dll!SfxDispatcher::ExecuteList(unsigned short nSlot, SfxCallMode 
> eCall, std::initializer_list<SfxPoolItem const *> args) Line 1152        C++
     svxlo.dll!svx::sidebar::AreaPropertyPanel::setFillStyleAndBitmap(const
XFillStyleItem * pStyleItem, const XFillBitmapItem & rBitmapItem) Line 150   
C++
     svxlo.dll!svx::sidebar::AreaPropertyPanelBase::SelectFillAttrHdl(ListBox &
__formal) Line 488    C++
    
svxlo.dll!svx::sidebar::AreaPropertyPanelBase::LinkStubSelectFillAttrHdl(void *
instance, ListBox & data) Line 399    C++
     vcllo.dll!Link<ListBox &,void>::Call(ListBox & data) Line 84    C++

To reproduce:
- New Draw
- Draw Shape (RightLeftArrow)
- In Sidebar, in Area, choose 'Bitmap' and then a Bitmap
-> crash in SfxDispatcher::ExecuteList due to one member of
std::initializer_list<SfxPoolItem const*> args being zero. Looking at
AreaPropertyPanelBase::SelectFillAttrHdl shows that nullptr is handed in by
purpose:

setFillStyleAndBitmap(bFillStyleChange ? &aXFillStyleItem : nullptr,
aXFillBitmapItem)

so this has worked before the change.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to