https://bugs.webkit.org/show_bug.cgi?id=174628
Reviewed by Žan Doberšek.
* Modules/encryptedmedia/InitDataRegistry.cpp:
(WebCore::extractKeyIDsKeyids): Add an explicit cast to unsigned.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219658
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2017-07-18 Carlos Alberto Lopez Perez <clopez@igalia.com>
+
+ [EME] Build failure with Clang-3.8 on InitDataRegistry.cpp
+ https://bugs.webkit.org/show_bug.cgi?id=174628
+
+ Reviewed by Žan Doberšek.
+
+ * Modules/encryptedmedia/InitDataRegistry.cpp:
+ (WebCore::extractKeyIDsKeyids): Add an explicit cast to unsigned.
+
2017-07-19 Matt Lewis <jlewis3@apple.com>
Unreviewed, rolling out r219646.
{
// 1. Format
// https://w3c.github.io/encrypted-media/format-registry/initdata/keyids.html#format
- String json { buffer.data(), buffer.size() };
+ if (buffer.size() > std::numeric_limits<unsigned>::max())
+ return { };
+ String json { buffer.data(), static_cast<unsigned>(buffer.size()) };
RefPtr<InspectorValue> value;
if (!InspectorValue::parseJSON(json, value))