summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom/StyleElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/StyleElement.cpp')
-rw-r--r--Source/WebCore/dom/StyleElement.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WebCore/dom/StyleElement.cpp b/Source/WebCore/dom/StyleElement.cpp
index f984fda..e9d035d 100644
--- a/Source/WebCore/dom/StyleElement.cpp
+++ b/Source/WebCore/dom/StyleElement.cpp
@@ -103,8 +103,15 @@ void StyleElement::process(Element* e)
for (Node* c = e->firstChild(); c; c = c->nextSibling()) {
if (isValidStyleChild(c)) {
unsigned length = c->nodeValue().length();
+<<<<<<< HEAD
if (length > std::numeric_limits<unsigned>::max() - resultLength)
CRASH();
+=======
+ if (length > std::numeric_limits<unsigned>::max() - resultLength) {
+ createSheet(e, m_startLineNumber, "");
+ return;
+ }
+>>>>>>> webkit.org at r82507
resultLength += length;
}
}