summaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-26 18:44:46 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-26 18:44:46 +0000
commit26b4b454ad7e293052c63bf899d1158b41abe964 (patch)
tree6ebddb7996d1b384a055e7a20d0b0db2d07c5e60 /third_party
parent449ede9fdc87bee8d8b1daf0ac223c1a354570b4 (diff)
downloadchromium_src-26b4b454ad7e293052c63bf899d1158b41abe964.zip
chromium_src-26b4b454ad7e293052c63bf899d1158b41abe964.tar.gz
chromium_src-26b4b454ad7e293052c63bf899d1158b41abe964.tar.bz2
Loosen corruption test in fts3.c while debugging.
The gist of the test was right, but an uninitialized variable means it's not making the test intended. Will follow up with a fix later. BUG=84057, 83946 TEST=See bug 83946. Review URL: http://codereview.chromium.org/7075014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86864 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r--third_party/sqlite/amalgamation/sqlite3.c2
-rw-r--r--third_party/sqlite/src/ext/fts3/fts3.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/third_party/sqlite/amalgamation/sqlite3.c b/third_party/sqlite/amalgamation/sqlite3.c
index 0a3d5f4..cb4efb2 100644
--- a/third_party/sqlite/amalgamation/sqlite3.c
+++ b/third_party/sqlite/amalgamation/sqlite3.c
@@ -112248,7 +112248,7 @@ static int fts3ScanInteriorNode(
** the prefix is longer than the previous term, or if the suffix
** causes overflow.
*/
- if( nPrefix<0 || nSuffix<0 || nPrefix>nBuffer
+ if( nPrefix<0 || nSuffix<0 /* || nPrefix>nBuffer */
|| &zCsr[nSuffix]<zCsr || &zCsr[nSuffix]>zEnd ){
rc = SQLITE_CORRUPT;
goto finish_scan;
diff --git a/third_party/sqlite/src/ext/fts3/fts3.c b/third_party/sqlite/src/ext/fts3/fts3.c
index 9707e03..8498cfa 100644
--- a/third_party/sqlite/src/ext/fts3/fts3.c
+++ b/third_party/sqlite/src/ext/fts3/fts3.c
@@ -1232,7 +1232,7 @@ static int fts3ScanInteriorNode(
** the prefix is longer than the previous term, or if the suffix
** causes overflow.
*/
- if( nPrefix<0 || nSuffix<0 || nPrefix>nBuffer
+ if( nPrefix<0 || nSuffix<0 /* || nPrefix>nBuffer */
|| &zCsr[nSuffix]<zCsr || &zCsr[nSuffix]>zEnd ){
rc = SQLITE_CORRUPT;
goto finish_scan;