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

Unified Diff: base/json_reader.cc

Issue 5628: Fixes bug where JSON reader errored on reading vertical tabs (\v). The... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 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 | base/json_reader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json_reader.cc
===================================================================
--- base/json_reader.cc (revision 2755)
+++ base/json_reader.cc (working copy)
@@ -361,6 +361,7 @@
case 'n':
case 'r':
case 't':
+ case 'v':
case '"':
break;
default:
@@ -406,6 +407,9 @@
case 't':
decoded_str.push_back('\t');
break;
+ case 'v':
+ decoded_str.push_back('\v');
+ break;
case 'x':
decoded_str.push_back((HexToInt(*(token.begin + i + 1)) << 4) +
« no previous file with comments | « no previous file | base/json_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698