Title: [160776] trunk/Source/WebKit2
- Revision
- 160776
- Author
- [email protected]
- Date
- 2013-12-18 10:30:07 -0800 (Wed, 18 Dec 2013)
Log Message
Fix Dictionary encoding
https://bugs.webkit.org/show_bug.cgi?id=125930
Reviewed by Andreas Kling.
Encode the HashMap size as a 64-bit unsigned integer.
* Shared/UserData.cpp:
(WebKit::UserData::encode):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (160775 => 160776)
--- trunk/Source/WebKit2/ChangeLog 2013-12-18 18:26:09 UTC (rev 160775)
+++ trunk/Source/WebKit2/ChangeLog 2013-12-18 18:30:07 UTC (rev 160776)
@@ -1,3 +1,15 @@
+2013-12-18 Anders Carlsson <[email protected]>
+
+ Fix Dictionary encoding
+ https://bugs.webkit.org/show_bug.cgi?id=125930
+
+ Reviewed by Andreas Kling.
+
+ Encode the HashMap size as a 64-bit unsigned integer.
+
+ * Shared/UserData.cpp:
+ (WebKit::UserData::encode):
+
2013-12-18 Carlos Garcia Campos <[email protected]>
Unreviewed. Fix make distcheck.
Modified: trunk/Source/WebKit2/Shared/UserData.cpp (160775 => 160776)
--- trunk/Source/WebKit2/Shared/UserData.cpp 2013-12-18 18:26:09 UTC (rev 160775)
+++ trunk/Source/WebKit2/Shared/UserData.cpp 2013-12-18 18:30:07 UTC (rev 160776)
@@ -128,7 +128,7 @@
auto& dictionary = static_cast<const ImmutableDictionary&>(object);
auto& map = dictionary.map();
- encoder << map.size();
+ encoder << static_cast<uint64_t>(map.size());
for (const auto& keyValuePair : map) {
encoder << keyValuePair.key;
encode(encoder, keyValuePair.value.get());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes