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

Unified Diff: third_party/sqlite/ext/fts2/fts2.c

Issue 174387: Fix issue 15261: Crash in history::TextDatabase::GetTextMatches... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « third_party/sqlite/ext/fts1/simple_tokenizer.c ('k') | third_party/sqlite/ext/fts2/fts2_tokenizer1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/ext/fts2/fts2.c
===================================================================
--- third_party/sqlite/ext/fts2/fts2.c (revision 25131)
+++ third_party/sqlite/ext/fts2/fts2.c (working copy)
@@ -372,7 +372,7 @@
return (c&0x80)==0 ? isspace(c) : 0;
}
static int safe_tolower(char c){
- return (c&0x80)==0 ? tolower(c) : c;
+ return (c>='A' && c<='Z') ? (c-'A'+'a') : c;
}
static int safe_isalnum(char c){
return (c&0x80)==0 ? isalnum(c) : 0;
« no previous file with comments | « third_party/sqlite/ext/fts1/simple_tokenizer.c ('k') | third_party/sqlite/ext/fts2/fts2_tokenizer1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698