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

Unified Diff: net/spdy/fuzzing/hpack_fuzz_mutator.cc

Issue 268943002: Add hpack_fuzz_wrapper to chromium_builder_asan (re-apply). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Also disable warning C4267. Created 6 years, 8 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 | « net/spdy/fuzzing/hpack_example_generator.cc ('k') | net/spdy/fuzzing/hpack_fuzz_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/fuzzing/hpack_fuzz_mutator.cc
diff --git a/net/spdy/fuzzing/hpack_fuzz_mutator.cc b/net/spdy/fuzzing/hpack_fuzz_mutator.cc
index c6d4e92a1385e2a92089aa5b92cb1d8b5d725087..f0a4c7a58ebac1e52ebf78f215ec67f9aec1d47f 100644
--- a/net/spdy/fuzzing/hpack_fuzz_mutator.cc
+++ b/net/spdy/fuzzing/hpack_fuzz_mutator.cc
@@ -50,10 +50,11 @@ int main(int argc, char** argv) {
DVLOG(1) << "Reading input from " << file_to_parse;
HpackFuzzUtil::Input input;
- CHECK(base::ReadFileToString(base::FilePath(file_to_parse), &input.input));
+ CHECK(base::ReadFileToString(base::FilePath::FromUTF8Unsafe(file_to_parse),
+ &input.input));
DVLOG(1) << "Writing output to " << file_to_write;
- base::File file_out(base::FilePath(file_to_write),
+ base::File file_out(base::FilePath::FromUTF8Unsafe(file_to_write),
base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_WRITE);
CHECK(file_out.IsValid()) << file_out.error_details();
« no previous file with comments | « net/spdy/fuzzing/hpack_example_generator.cc ('k') | net/spdy/fuzzing/hpack_fuzz_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698