Changeset 179781 in webkit
- Timestamp:
- Feb 7, 2015, 11:45:15 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r179780 r179781 1 2015-02-07 Antti Koivisto <antti@apple.com> 2 3 Use longer hashes for cache keys 4 https://bugs.webkit.org/show_bug.cgi?id=141356 5 6 Rubber-stamped by Darin Adler. 7 8 Folloup and build fix. 9 10 * NetworkProcess/cache/NetworkCacheCoders.h: 11 * NetworkProcess/cache/NetworkCacheKey.cpp: 12 (WebKit::hashString): 13 14 Use containsOnlyASCII instead of is8Bit so both paths always compute the same hash. 15 16 * NetworkProcess/cache/NetworkCacheKey.h: 17 1 18 2015-02-07 Antti Koivisto <antti@apple.com> 2 19 -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheCoders.h
r179779 r179781 36 36 #include <wtf/HashMap.h> 37 37 #include <wtf/HashSet.h> 38 #include <wtf/MD5.h> 38 39 #include <wtf/Vector.h> 39 #include <wtf/md5.h>40 40 41 41 namespace WebKit { -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheKey.cpp
r179779 r179781 63 63 { 64 64 const uint8_t zero = 0; 65 if (string. is8Bit()) {65 if (string.containsOnlyASCII()) { 66 66 md5.addBytes(string.characters8(), string.length()); 67 67 md5.addBytes(&zero, 1); … … 89 89 { 90 90 StringBuilder builder; 91 builder.reserveCapacity(hashStringLength()); 91 92 for (auto byte : m_hash) { 92 93 builder.append(upperNibbleToASCIIHexDigit(byte)); -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheKey.h
r179779 r179781 29 29 #if ENABLE(NETWORK_CACHE) 30 30 31 #include <wtf/ md5.h>31 #include <wtf/MD5.h> 32 32 #include <wtf/text/WTFString.h> 33 33
Note:
See TracChangeset
for help on using the changeset viewer.