| Index: Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
|
| diff --git a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
|
| index b0500a094c1e51636d4c7b40ed290d0b23d661c5..a7d2aca22db2cddd45aef084a3da749742eadcd3 100644
|
| --- a/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
|
| +++ b/Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
|
| @@ -48,8 +48,11 @@ public:
|
| virtual void process(const unsigned char* bytes, size_t size) OVERRIDE
|
| {
|
| // Don't buffer too much data.
|
| - if (m_data.size() + size > 6)
|
| + if (m_data.size() + size > 6) {
|
| m_result.completeWithError();
|
| + delete this;
|
| + return;
|
| + }
|
|
|
| if (size)
|
| m_data.append(reinterpret_cast<const char*>(bytes), size);
|
|
|