Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-546

The overlay version of QGraphicsVideoItem crashes when paint() is called with a null pointer widget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 1.1.0
    • 1.1.0
    • Multimedia
    • None
    • f8f32a2308c8fa43041c3bed7555234c0caeb256

    Description

      When the overlay version of QGraphicsVideoItem is compiled (qgraphicsvideoitem_overlay.cpp), calling QGraphicsVideoItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) with a null-pointer for the QWidget causes a crash, because the implementation unconditionally dereferences the widget:

      d->windowControl->setWinId(widget->winId())

      The widget parameter is option, so QGraphicsVideoItem shouldn't crash at least.

      Attachments

        Activity

          People

            jmcphers Justin McPherson (closed Nokia identity) (Inactive)
            shausman Simon Hausmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: