Title: [253186] trunk/Source/WTF
- Revision
- 253186
- Author
- [email protected]
- Date
- 2019-12-05 16:34:15 -0800 (Thu, 05 Dec 2019)
Log Message
[IPC] Fail ObjectIdentifier decoding if the decoded integer is not a valid ID
https://bugs.webkit.org/show_bug.cgi?id=204921
<rdar://problem/57677747>
Reviewed by Ryosuke Niwa.
* wtf/ObjectIdentifier.h:
(WTF::ObjectIdentifier::decode):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (253185 => 253186)
--- trunk/Source/WTF/ChangeLog 2019-12-06 00:26:09 UTC (rev 253185)
+++ trunk/Source/WTF/ChangeLog 2019-12-06 00:34:15 UTC (rev 253186)
@@ -1,3 +1,14 @@
+2019-12-05 Chris Dumez <[email protected]>
+
+ [IPC] Fail ObjectIdentifier decoding if the decoded integer is not a valid ID
+ https://bugs.webkit.org/show_bug.cgi?id=204921
+ <rdar://problem/57677747>
+
+ Reviewed by Ryosuke Niwa.
+
+ * wtf/ObjectIdentifier.h:
+ (WTF::ObjectIdentifier::decode):
+
2019-12-03 Sunny He <[email protected]>
Enable security assertions on all ASAN builds
Modified: trunk/Source/WTF/wtf/ObjectIdentifier.h (253185 => 253186)
--- trunk/Source/WTF/wtf/ObjectIdentifier.h 2019-12-06 00:26:09 UTC (rev 253185)
+++ trunk/Source/WTF/wtf/ObjectIdentifier.h 2019-12-06 00:34:15 UTC (rev 253186)
@@ -66,9 +66,8 @@
{
Optional<uint64_t> identifier;
decoder >> identifier;
- if (!identifier)
+ if (!identifier || !isValidIdentifier(*identifier))
return WTF::nullopt;
- ASSERT(isValidIdentifier(*identifier));
return ObjectIdentifier { *identifier };
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes