[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konq-bugs
Subject:    [konqueror] [Bug 262149] crashes while surfing the pages that generated by sigplus component of Joom
From:       Andrea Iacovitti <aiacovitti () libero ! it>
Date:       2013-01-22 13:53:56
Message-ID: bug-262149-5021-WYUW5bhkrR () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=262149

Andrea Iacovitti <aiacovitti@libero.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aiacovitti@libero.it
            Version|4.8.3                       |4.9.98 RC3

--- Comment #9 from Andrea Iacovitti <aiacovitti@libero.it> ---
from khtml/rendering/render_media.cpp :
...
bool RenderMedia::eventFilter(QObject* o, QEvent* e)
{
    if (widget()->layout()->count() != 1 && mediaElement()->isVideo()) {
        switch(e->type()) {
        case QEvent::Enter:
    case QEvent::FocusIn:
        widget()->layout()->itemAt(1)->widget()->show();
        break;
    case QEvent::Leave:
    case QEvent::FocusOut:
        widget()->layout()->itemAt(1)->widget()->hide();
        break;
    default: ;
        }
    }

    return RenderWidget::eventFilter(o, e);
}
...

it crash when widget()->layout()->count() == 0,
because of an out of bound index access: widget()->layout()->itemAt(1)->show()

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Konq-bugs mailing list
Konq-bugs@kde.org
https://mail.kde.org/mailman/listinfo/konq-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic