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

Issue 174387: Fix issue 15261: Crash in history::TextDatabase::GetTextMatches... (Closed)

Created:
11 years, 4 months ago by James Su
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix 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 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -8 lines) Patch
M third_party/sqlite/README.chromium View 2 chunks +5 lines, -1 line 0 comments Download
M third_party/sqlite/ext/fts1/fts1.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/sqlite/ext/fts1/fts1_tokenizer1.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/sqlite/ext/fts1/simple_tokenizer.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/sqlite/ext/fts2/fts2.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/sqlite/ext/fts2/fts2_tokenizer1.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/sqlite/ext/fts3/fts3.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/sqlite/ext/fts3/fts3_tokenizer1.c View 1 2 1 chunk +1 line, -1 line 0 comments Download
A third_party/sqlite/safe-tolower.patch View 2 1 chunk +97 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
James Su
A CL to fix issue 15261. Please help review. Regards James Su
11 years, 4 months ago (2009-08-25 04:37:20 UTC) #1
Evan Martin
Our changes to sqlite are not tracked in a very useful way :( but if ...
11 years, 4 months ago (2009-08-25 17:54:35 UTC) #2
Evan Martin
http://codereview.chromium.org/174387/diff/1/6 File third_party/sqlite/ext/fts1/fts1.c (right): http://codereview.chromium.org/174387/diff/1/6#newcode211 Line 211: return (c >= 'A' && c<= 'Z') ? ...
11 years, 4 months ago (2009-08-25 17:55:18 UTC) #3
Scott Hess - ex-Googler
Elaborating on the SQLite upstreaming, you should verify that the problem still exists in their ...
11 years, 4 months ago (2009-08-25 21:20:48 UTC) #4
James Su
On 2009/08/25 17:54:35, Evan Martin wrote: > Our changes to sqlite are not tracked in ...
11 years, 4 months ago (2009-08-26 01:36:53 UTC) #5
James Su
Hi, I just checked the source code of the latest sqlite release 3.6.17 and its ...
11 years, 4 months ago (2009-08-26 03:09:32 UTC) #6
James Su
CL updated according to your comments, except for the README change. Regards James Su http://codereview.chromium.org/174387/diff/1/6 ...
11 years, 4 months ago (2009-08-26 03:14:51 UTC) #7
Scott Hess - ex-Googler
I think we should upstream the fix so that when we sync with latest SQLite ...
11 years, 4 months ago (2009-08-26 03:17:11 UTC) #8
James Su
A ticket has been created upstream: http://www.sqlite.org/src/tktview/991789d9f3136a0460dc83a33e815c1aa9757c26 On 2009/08/26 03:17:11, shess wrote: > I think ...
11 years, 4 months ago (2009-08-26 03:43:17 UTC) #9
James Su
Ping. On 2009/08/26 03:43:17, James Su wrote: > A ticket has been created upstream: > ...
11 years, 3 months ago (2009-09-01 06:47:41 UTC) #10
Evan Martin
LGTM. Two suggestions for you to either add and commit or just commit without: Can ...
11 years, 3 months ago (2009-09-01 20:43:41 UTC) #11
Scott Hess - ex-Googler
11 years, 3 months ago (2009-09-01 23:04:58 UTC) #12
LGTM.

+1 to Evan's comment about linking to the SQLite bug, so that when/if we ever
reimport that can easily be found.

On 2009/09/01 20:43:41, Evan Martin wrote:
> LGTM.  Two suggestions for you to either add and commit or just commit
without:
> 
> Can you update the README to mention the patch, if you think that's
appropriate?
> 
> Can you add some text to the beginning of the patch that links to the bug or
> describes what the patch works around?  (You can put arbitrary text at the
> beginning of a .patch file)

Powered by Google App Engine
This is Rietveld 408576698