Fix a crasher in full text search (sqlite) - If the xxx_segdir table gets corrupted, you can have non-contiguous indexes (idx). - This causes an assertion in debug, and a crash later on on release
Fix a crasher in full text search (sqlite)
- If the xxx_segdir table gets corrupted, you can have non-contiguous indexes (idx).
- This causes an assertion in debug, and a crash later on on release

With this change it will return 'corrupted db'

We shall wait to get a couple more fixes to upstream to sqlite org.

BUG=21377
TEST=see bug

Review URL: http://codereview.chromium.org/203046

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@26118 0039d316-1c4b-4281-b951-d872f2087c98

krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,rogerwang/chromium,Chilledheart/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,ChromiumWebApps/chromium,ondra-novak/chromium.src,littlstar/chromium.src,timopulkkinen/BubbleFish,robclark/chromium,fujunwei/chromium-crosswalk,littlstar/chromium.src,dednal/chromium.src,M4sse/chromium.src,Fireblend/chromium-crosswalk,littlstar/chromium.src,mogoweb/chromium-crosswalk,markYoungH/chromium.src,anirudhSK/chromium,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,rogerwang/chromium,keishi/chromium,hgl888/chromium-crosswalk,hujiajie/pa-chromium,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,dushu1203/chromium.src,ltilve/chromium,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,M4sse/chromium.src,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,robclark/chromium,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,dednal/chromium.src,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,nacl-webkit/chrome_deps,hujiajie/pa-chromium,dednal/chromium.src,jaruba/chromium.src,ondra-novak/chromium.src,ChromiumWebApps/chromium,ltilve/chromium,jaruba/chromium.src,fujunwei/chromium-crosswalk,dushu1203/chromium.src,keishi/chromium,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,Jonekee/chromium.src,dednal/chromium.src,PeterWangIntel/chromium-crosswalk,patrickm/chromium.src,fujunwei/chromium-crosswalk,patrickm/chromium.src,robclark/chromium,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,patrickm/chromium.src,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,ltilve/chromium,junmin-zhu/chromium-rivertrail,ltilve/chromium,markYoungH/chromium.src,fujunwei/chromium-crosswalk,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,dednal/chromium.src,rogerwang/chromium,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,Jonekee/chromium.src,patrickm/chromium.src,ltilve/chromium,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,anirudhSK/chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,dushu1203/chromium.src,anirudhSK/chromium,axinging/chromium-crosswalk,hujiajie/pa-chromium,crosswalk-project/chromium-crosswalk-efl,keishi/chromium,Jonekee/chromium.src,hgl888/chromium-crosswalk,rogerwang/chromium,Jonekee/chromium.src,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,Just-D/chromium-1,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,keishi/chromium,zcbenz/cefode-chromium,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,dednal/chromium.src,dednal/chromium.src,nacl-webkit/chrome_deps,M4sse/chromium.src,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,dushu1203/chromium.src,Chilledheart/chromium,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,Chilledheart/chromium,M4sse/chromium.src,patrickm/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,anirudhSK/chromium,jaruba/chromium.src,axinging/chromium-crosswalk,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,hgl888/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,keishi/chromium,anirudhSK/chromium,dednal/chromium.src,axinging/chromium-crosswalk,markYoungH/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,markYoungH/chromium.src,zcbenz/cefode-chromium,dushu1203/chromium.src,Just-D/chromium-1,keishi/chromium,M4sse/chromium.src,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,bright-sparks/chromium-spacewalk,anirudhSK/chromium,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,timopulkkinen/BubbleFish,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,robclark/chromium,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,patrickm/chromium.src,timopulkkinen/BubbleFish,jaruba/chromium.src,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,patrickm/chromium.src,dednal/chromium.src,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,Chilledheart/chromium,Just-D/chromium-1,Jonekee/chromium.src,robclark/chromium,Chilledheart/chromium,anirudhSK/chromium,littlstar/chromium.src,fujunwei/chromium-crosswalk,zcbenz/cefode-chromium,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,nacl-webkit/chrome_deps,dushu1203/chromium.src,mohamed--abdel-maksoud/chromium.src,junmin-zhu/chromium-rivertrail,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,dushu1203/chromium.src,zcbenz/cefode-chromium,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,robclark/chromium,PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,dushu1203/chromium.src,chuan9/chromium-crosswalk,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,ondra-novak/chromium.src,nacl-webkit/chrome_deps,patrickm/chromium.src,Fireblend/chromium-crosswalk,ltilve/chromium,chuan9/chromium-crosswalk,jaruba/chromium.src,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,keishi/chromium,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,ltilve/chromium,timopulkkinen/BubbleFish,Just-D/chromium-1,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,Just-D/chromium-1,ltilve/chromium,markYoungH/chromium.src,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,robclark/chromium,PeterWangIntel/chromium-crosswalk,ltilve/chromium,hujiajie/pa-chromium,Jonekee/chromium.src,robclark/chromium,anirudhSK/chromium,markYoungH/chromium.src,chuan9/chromium-crosswalk,anirudhSK/chromium,dushu1203/chromium.src,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,patrickm/chromium.src,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,Just-D/chromium-1,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,rogerwang/chromium,hgl888/chromium-crosswalk,littlstar/chromium.src,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,M4sse/chromium.src,robclark/chromium,ChromiumWebApps/chromium,anirudhSK/chromium,Jonekee/chromium.src,keishi/chromium,Just-D/chromium-1,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,jaruba/chromium.src,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,rogerwang/chromium,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,Just-D/chromium-1,Jonekee/chromium.src,rogerwang/chromium,mogoweb/chromium-crosswalk,rogerwang/chromium,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,keishi/chromium,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,keishi/chromium,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,robclark/chromium,Jonekee/chromium.src,M4sse/chromium.src,nacl-webkit/chrome_deps,littlstar/chromium.src,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,Just-D/chromium-1