Title: [219658] trunk/Source/WebCore
- Revision
- 219658
- Author
- clo...@igalia.com
- Date
- 2017-07-19 10:27:10 -0700 (Wed, 19 Jul 2017)
Log Message
[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.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (219657 => 219658)
--- trunk/Source/WebCore/ChangeLog 2017-07-19 17:09:32 UTC (rev 219657)
+++ trunk/Source/WebCore/ChangeLog 2017-07-19 17:27:10 UTC (rev 219658)
@@ -1,3 +1,13 @@
+2017-07-18 Carlos Alberto Lopez Perez <clo...@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 <jlew...@apple.com>
Unreviewed, rolling out r219646.
Modified: trunk/Source/WebCore/Modules/encryptedmedia/InitDataRegistry.cpp (219657 => 219658)
--- trunk/Source/WebCore/Modules/encryptedmedia/InitDataRegistry.cpp 2017-07-19 17:09:32 UTC (rev 219657)
+++ trunk/Source/WebCore/Modules/encryptedmedia/InitDataRegistry.cpp 2017-07-19 17:27:10 UTC (rev 219658)
@@ -42,7 +42,9 @@
{
// 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))
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes