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

Unified Diff: chrome/test/base/v8_unit_test.cc

Issue 11782005: Don't allow path traversal paths on the base file helpers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 | « base/platform_file_win.cc ('k') | skia/ext/vector_canvas_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/v8_unit_test.cc
===================================================================
--- chrome/test/base/v8_unit_test.cc (revision 175576)
+++ chrome/test/base/v8_unit_test.cc (working copy)
@@ -68,6 +68,7 @@
library_file = file_util::PathExists(gen_file) ? gen_file :
test_data_directory.Append(*user_libraries_iterator);
}
+ file_util::AbsolutePath(&library_file);
if (!file_util::ReadFileToString(library_file, &library_content)) {
ADD_FAILURE() << library_file.value();
return false;
« no previous file with comments | « base/platform_file_win.cc ('k') | skia/ext/vector_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698