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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBInTransferResult.h

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+more tweaks Created 5 years, 1 month 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
Index: third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
diff --git a/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h b/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
index 5d27e4745b6bbbe489bf0929e346229a0a9c4fdb..6f8601721509b923fe33567949a7cbe9c9b047a9 100644
--- a/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
+++ b/third_party/WebKit/Source/modules/webusb/USBInTransferResult.h
@@ -25,7 +25,7 @@ public:
USBInTransferResult(const String& status, const WebVector<uint8_t> data)
: m_status(status)
- , m_data(DOMArrayBuffer::create(data.data(), data.size()))
+ , m_data(DOMArrayBuffer::deprecatedCreateOrCrash(data.data(), data.size()))
{
}

Powered by Google App Engine
This is Rietveld 408576698