DescriptionFix issue 15261: Crash in history::TextDatabase::GetTextMatches
The crash in history::TextDatabase::GetTextMatches is caused by unexpected result of tolower() in some locales such as tr_TR.UTF-8. This CL fixes this issue by using following statement to replace tolower():
(ch>='A' && ch<='Z') ? (ch-'A'+'a') : ch
which will always return expected result for ascii characters regardless of current locale.
BUG=15261
Crash in history::TextDatabase::GetTextMatches
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=25141
Patch Set 1 #
Total comments: 5
Patch Set 2 : '' #Patch Set 3 : '' #
Messages
Total messages: 12 (0 generated)
|