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

Unified Diff: extensions/utility/unpacker_unittest.cc

Issue 2859513002: Fix potential buffer over-read errors for un-terminated JSON strings and comments. (Closed)
Patch Set: Address comments Created 3 years, 7 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
« base/json/json_parser_unittest.cc ('K') | « base/json/json_parser_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/utility/unpacker_unittest.cc
diff --git a/extensions/utility/unpacker_unittest.cc b/extensions/utility/unpacker_unittest.cc
index 3f9a53c3d7f0ac675fd76fc333cd27cf74d20c2f..1e31a680926a05badab57f0dd1aa40e0253bd0de 100644
--- a/extensions/utility/unpacker_unittest.cc
+++ b/extensions/utility/unpacker_unittest.cc
@@ -89,9 +89,8 @@ TEST_F(UnpackerTest, InvalidMessagesFile) {
EXPECT_FALSE(unpacker_->Run());
EXPECT_TRUE(base::MatchPattern(
unpacker_->error_message(),
- ASCIIToUTF16(
- "*_locales?en_US?messages.json: Line: 2, column: 11,"
- " Syntax error.")))
+ ASCIIToUTF16("*_locales?en_US?messages.json: Line: 2, column: 10,"
+ " Syntax error.")))
<< unpacker_->error_message();
}
« base/json/json_parser_unittest.cc ('K') | « base/json/json_parser_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698