Changeset 160776 in webkit


Ignore:
Timestamp:
Dec 18, 2013 10:30:07 AM (10 years ago)
Author:
andersca@apple.com
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):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r160758 r160776  
     12013-12-18  Anders Carlsson  <andersca@apple.com>
     2
     3        Fix Dictionary encoding
     4        https://bugs.webkit.org/show_bug.cgi?id=125930
     5
     6        Reviewed by Andreas Kling.
     7
     8        Encode the HashMap size as a 64-bit unsigned integer.
     9
     10        * Shared/UserData.cpp:
     11        (WebKit::UserData::encode):
     12
    1132013-12-18  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebKit2/Shared/UserData.cpp

    r160737 r160776  
    129129        auto& map = dictionary.map();
    130130
    131         encoder << map.size();
     131        encoder << static_cast<uint64_t>(map.size());
    132132        for (const auto& keyValuePair : map) {
    133133            encoder << keyValuePair.key;
Note: See TracChangeset for help on using the changeset viewer.