WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
44564
Null dereference possible in WebView::canShowMIMEType
https://bugs.webkit.org/show_bug.cgi?id=44564
Summary
Null dereference possible in WebView::canShowMIMEType
Ada Chan
Reported
2010-08-24 16:46:15 PDT
This is a snippet from WebView::canShowMIMEType(): *canShow = MIMETypeRegistry::isSupportedImageMIMEType(mimeTypeStr) || MIMETypeRegistry::isSupportedNonImageMIMEType(mimeTypeStr) || (m_page && m_page->pluginData()->supportsMimeType(mimeTypeStr)) || shouldUseEmbeddedView(mimeTypeStr); m_page->pluginData() can return null if plugins are disabled on the user's system and we'd crash in that case. We should null check m_page->pluginData().
Attachments
Patch
(1.27 KB, patch)
2010-08-24 17:05 PDT
,
Ada Chan
sfalken
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ada Chan
Comment 1
2010-08-24 16:47:24 PDT
<
rdar://problem/8185379
>
Ada Chan
Comment 2
2010-08-24 17:05:22 PDT
Created
attachment 65346
[details]
Patch Null check return value of m_page->pluginData() before accessing it.
Ada Chan
Comment 3
2010-08-24 17:10:23 PDT
Committed fix:
r65952
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug