Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc

Issue 2750533003: Temporarily CHECK use after free in Value (Closed)
Patch Set: Fix more Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/common/values_struct_traits.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
diff --git a/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc b/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
index e69aecc3444a7860fe0b5b379a9ed7a957ae5337..7eaa61c1c4112536092c04ad5fa70597cf7992ab 100644
--- a/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
+++ b/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
@@ -75,6 +75,10 @@ PP_Var PPB_X509Certificate_Fields::GetFieldAsPPVar(
case base::Value::Type::LIST:
// Not handled.
break;
+ case base::Value::Type::DELETED:
+ // TODO(crbug.com/697817): This means |value| is used after free.
+ CHECK(false);
+ break;
}
// Should not reach here.
« no previous file with comments | « mojo/common/values_struct_traits.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698