forked from sanyaade-mobiledev/chromium.src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http://www.sqlite.org/src/info/f9c4a7c8f4 Upstream commits in branch-3.7.6: http://www.sqlite.org/src/info/a61786e760 (third hunk) http://www.sqlite.org/src/info/e6a04bf9f1 (correction) I have left out the comment addition seen in the trunk commit, because the backport to the 3.7.6 branch doesn't include it. [Patch from Evangelos Foutras <evangelos@foutrelis.com> ] BUG=122525 TEST=distros using gcc4.7 shouldn't crash. see bug. R=shess@chromium.org Review URL: https://chromiumcodereview.appspot.com/10387026 Patch from Evangelos Foutras <evangelos@foutrelis.com>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141687 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
shess@chromium.org
committed
Jun 12, 2012
1 parent
79a207b
commit 46d044d
Showing
5 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
third_party/sqlite/sqlite-3.7.6.3-fix-out-of-scope-memory-reference.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- ext/fts3/fts3_write.c.orig 2012-05-08 21:05:03.000000000 +0300 | ||
+++ ext/fts3/fts3_write.c 2012-05-08 21:07:08.000000000 +0300 | ||
@@ -1238,13 +1238,13 @@ int sqlite3Fts3SegReaderPending( | ||
Fts3SegReader **ppReader /* OUT: SegReader for pending-terms */ | ||
){ | ||
Fts3SegReader *pReader = 0; /* Fts3SegReader object to return */ | ||
+ Fts3HashElem *pE; /* Iterator variable */ | ||
Fts3HashElem **aElem = 0; /* Array of term hash entries to scan */ | ||
int nElem = 0; /* Size of array at aElem */ | ||
int rc = SQLITE_OK; /* Return Code */ | ||
|
||
if( isPrefix ){ | ||
int nAlloc = 0; /* Size of allocated array at aElem */ | ||
- Fts3HashElem *pE = 0; /* Iterator variable */ | ||
|
||
for(pE=fts3HashFirst(&p->pendingTerms); pE; pE=fts3HashNext(pE)){ | ||
char *zKey = (char *)fts3HashKey(pE); | ||
@@ -1276,7 +1276,7 @@ int sqlite3Fts3SegReaderPending( | ||
} | ||
|
||
}else{ | ||
- Fts3HashElem *pE = fts3HashFindElem(&p->pendingTerms, zTerm, nTerm); | ||
+ pE = fts3HashFindElem(&p->pendingTerms, zTerm, nTerm); | ||
if( pE ){ | ||
aElem = &pE; | ||
nElem = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters