UserData::decode should return false when decoding an unrecognized type
authorachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Jul 2019 18:27:23 +0000 (18:27 +0000)
committerachristensen@apple.com <achristensen@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 Jul 2019 18:27:23 +0000 (18:27 +0000)
https://bugs.webkit.org/show_bug.cgi?id=199598
<rdar://52735138>

Reviewed by Ryosuke Niwa.

* Shared/UserData.cpp:
(WebKit::UserData::decode):

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

Source/WebKit/ChangeLog
Source/WebKit/Shared/UserData.cpp

index 1ba70fe..830b611 100644 (file)
@@ -1,3 +1,14 @@
+2019-07-09  Alex Christensen  <achristensen@webkit.org>
+
+        UserData::decode should return false when decoding an unrecognized type
+        https://bugs.webkit.org/show_bug.cgi?id=199598
+        <rdar://52735138>
+
+        Reviewed by Ryosuke Niwa.
+
+        * Shared/UserData.cpp:
+        (WebKit::UserData::decode):
+
 2019-07-08  Chris Dumez  <cdumez@apple.com>
 
         Speculative fix for crashes under LocalStorageDatabaseTracker::databasePath()
index fd9e424..791035a 100644 (file)
@@ -598,6 +598,7 @@ bool UserData::decode(IPC::Decoder& decoder, RefPtr<API::Object>& result)
 
     default:
         ASSERT_NOT_REACHED();
+        return false;
     }
 
     return true;