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

Unified Diff: media/cdm/ppapi/cdm_adapter.cc

Issue 558813004: Fix certificate length check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/cdm_adapter.cc
diff --git a/media/cdm/ppapi/cdm_adapter.cc b/media/cdm/ppapi/cdm_adapter.cc
index 9f2d27eebc7fd5daee120253c2a632d7d17eb881..9acee561d96071992df0abaf4d9011594f4fb71c 100644
--- a/media/cdm/ppapi/cdm_adapter.cc
+++ b/media/cdm/ppapi/cdm_adapter.cc
@@ -332,7 +332,7 @@ void CdmAdapter::SetServerCertificate(uint32_t promise_id,
if (!server_certificate_ptr ||
server_certificate_size < media::limits::kMinCertificateLength ||
- server_certificate_size > media::limits::kMinCertificateLength) {
+ server_certificate_size > media::limits::kMaxCertificateLength) {
RejectPromise(
promise_id, cdm::kInvalidAccessError, 0, "Incorrect certificate.");
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698