Bug 161898

Summary: Null-pointer dereference in WebCore::MediaPlayer::getStartDate
Product: WebKit Reporter: codecolorist
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: jonlee, ross.kirsling, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

codecolorist
Reported 2016-09-13 02:29:06 PDT
In webkit/Source/WebCore/html/HTMLMediaElement.cpp, the method HTMLMediaElement::getStartDate doesn't check if m_player is null: double HTMLMediaElement::getStartDate() const { return m_player->getStartDate().toDouble(); } So this simple one line javascript can crash the browser: document.createElement('video').getStartDate()
Attachments
Radar WebKit Bug Importer
Comment 1 2019-08-15 11:26:00 PDT
Ross Kirsling
Comment 2 2019-08-15 11:53:35 PDT
*** This bug has been marked as a duplicate of bug 161733 ***
Note You need to log in before you can comment on or make changes to this bug.