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

Unified Diff: media/base/container_names_fuzzertest.cc

Issue 1725123006: Add checked_cast to avoid Windows compiler errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add //base dependency Created 4 years, 10 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 | « media/base/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/container_names_fuzzertest.cc
diff --git a/media/base/container_names_fuzzertest.cc b/media/base/container_names_fuzzertest.cc
index 8f5d860a6c8924949a6052503aa8092fb189e50f..281fcc4b7923b0a5a2e42e26218a02df175ca718 100644
--- a/media/base/container_names_fuzzertest.cc
+++ b/media/base/container_names_fuzzertest.cc
@@ -4,10 +4,12 @@
#include <stddef.h>
+#include "base/numerics/safe_conversions.h"
#include "media/base/container_names.h"
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
- media::container_names::DetermineContainer(data, size);
+ media::container_names::DetermineContainer(data,
+ base::checked_cast<int>(size));
return 0;
}
« no previous file with comments | « media/base/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698