Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp

Issue 1937033002: Fix crash in CSSStyleSheetResource::appendData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
index 78ebcd9928613cb4efdb798cef7753d0910e510b..d939116b07eb0a46e8c88e78f295af43623d5464 100644
--- a/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp
@@ -102,6 +102,8 @@ const String CSSStyleSheetResource::sheetText(MIMETypeCheck mimeTypeCheck) const
void CSSStyleSheetResource::appendData(const char* data, size_t length)
{
Resource::appendData(data, length);
+ if (!m_data)
Nate Chapin 2016/05/02 19:00:43 This should only be possible when m_options.dataBu
Charlie Harrison 2016/05/02 19:27:56 Ah good point.
+ return;
if (m_didNotifyFirstData)
return;
ResourceClientWalker<StyleSheetResourceClient> w(m_clients);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698