Harden HashTable IPC decoders
Created attachment 390142 [details] Patch
Created attachment 390144 [details] Patch
Comment on attachment 390144 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390144&action=review > Source/WebKit/Platform/IPC/ArgumentCoders.h:392 > + if (UNLIKELY(!HashMapType::isValidValue(*key) || !hashMap.add(WTFMove(*key), WTFMove(*value)).isNewEntry)) { I thought it was isValidKey() for HashMap and isValidValue() for HashSet? > Source/WebKit/Platform/IPC/ArgumentCoders.h:447 > + if (UNLIKELY(!HashSetType::isValidKey(*key) || !hashSet.add(WTFMove(*key)).isNewEntry)) { ditto.
Created attachment 390145 [details] Patch
Comment on attachment 390145 [details] Patch r=me
http://trac.webkit.org/r256081
<rdar://problem/59278838>