Don't call Vector::uncheckedAppend on a vector that we haven't reserved the capacity for
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2015 01:11:19 +0000 (01:11 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Nov 2015 01:11:19 +0000 (01:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=151069
rdar://problem/23473435

Reviewed by Tim Horton.

* Shared/API/Cocoa/_WKRemoteObjectInterface.mm:
(initializeMethod):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192195 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/Shared/API/Cocoa/_WKRemoteObjectInterface.mm

index 8c27e29..0664508 100644 (file)
@@ -1,5 +1,16 @@
 2015-11-09  Anders Carlsson  <andersca@apple.com>
 
+        Don't call Vector::uncheckedAppend on a vector that we haven't reserved the capacity for
+        https://bugs.webkit.org/show_bug.cgi?id=151069
+        rdar://problem/23473435
+
+        Reviewed by Tim Horton.
+
+        * Shared/API/Cocoa/_WKRemoteObjectInterface.mm:
+        (initializeMethod):
+
+2015-11-09  Anders Carlsson  <andersca@apple.com>
+
         Fix 32-bit build.
 
         * Shared/API/Cocoa/RemoteObjectRegistry.mm:
index 798ea70..5e135c4 100644 (file)
@@ -98,7 +98,7 @@ static void initializeMethod(MethodInfo& methodInfo, Protocol *protocol, SEL sel
 
         if (*argumentType != '@') {
             // This is a non-object type; we won't allow any classes to be decoded for it.
-            allowedClasses.uncheckedAppend({ });
+            allowedClasses.append({ });
             continue;
         }