Fix asan failure due to bug in string search.
Fix asan failure due to bug in string search.

Change-Id: I9759109ec2c6c262f5c17393b84dde8dddf851ff
(cherry picked from commit d31cb916637d79c7214d398f3e8d4a8599e74932)
Reviewed-on: http://gerrit.ent.cloudera.com:8080/1972
Reviewed-by: Nong Li <99a5e5f8f5911755b88e0b536d46aafa102bed41@cloudera.com>
Tested-by: Nong Li <99a5e5f8f5911755b88e0b536d46aafa102bed41@cloudera.com>

kapilrastogi/Impala,theyaa/Impala,cloudera/recordservice,lirui-intel/Impala,caseyching/Impala,brightchen/Impala,bratatidas9/Impala-1,theyaa/Impala,theyaa/Impala,cchanning/Impala,lnliuxing/Impala,tempbottle/Impala,gerashegalov/Impala,bowlofstew/Impala,bratatidas9/Impala-1,XiaominZhang/Impala,tempbottle/Impala,ImpalaToGo/ImpalaToGo,gerashegalov/Impala,tempbottle/Impala,ibmsoe/ImpalaPPC,theyaa/Impala,XiaominZhang/Impala,placrosse/ImpalaToGo,caseyching/Impala,ibmsoe/ImpalaPPC,rdblue/Impala,XiaominZhang/Impala,XiaominZhang/Impala,bratatidas9/Impala-1,grundprinzip/Impala,cloudera/recordservice,cgvarela/Impala,tempbottle/Impala,kapilrastogi/Impala,lnliuxing/Impala,lnliuxing/Impala,lirui-intel/Impala,lirui-intel/Impala,brightchen/Impala,ibmsoe/ImpalaPPC,brightchen/Impala,ImpalaToGo/ImpalaToGo,gerashegalov/Impala,rdblue/Impala,grundprinzip/Impala,cchanning/Impala,cchanning/Impala,bowlofstew/Impala,scalingdata/Impala,lnliuxing/Impala,henryr/Impala,bowlofstew/Impala,XiaominZhang/Impala,henryr/Impala,placrosse/ImpalaToGo,bratatidas9/Impala-1,lirui-intel/Impala,XiaominZhang/Impala,henryr/Impala,tempbottle/Impala,cloudera/recordservice,scalingdata/Impala,kapilrastogi/Impala,brightchen/Impala,cchanning/Impala,cloudera/recordservice,brightchen/Impala,henryr/Impala,kapilrastogi/Impala,scalingdata/Impala,bowlofstew/Impala,scalingdata/Impala,lnliuxing/Impala,caseyching/Impala,grundprinzip/Impala,rdblue/Impala,cchanning/Impala,brightchen/Impala,theyaa/Impala,bowlofstew/Impala,ibmsoe/ImpalaPPC,grundprinzip/Impala,bratatidas9/Impala-1,ImpalaToGo/ImpalaToGo,grundprinzip/Impala,mapr/impala,cloudera/recordservice,ImpalaToGo/ImpalaToGo,henryr/Impala,cloudera/recordservice,caseyching/Impala,ibmsoe/ImpalaPPC,scalingdata/Impala,lirui-intel/Impala,cgvarela/Impala,theyaa/Impala,scalingdata/Impala,tempbottle/Impala,mapr/impala,brightchen/Impala,ibmsoe/ImpalaPPC,cchanning/Impala,gerashegalov/Impala,kapilrastogi/Impala,bratatidas9/Impala-1,lirui-intel/Impala,cloudera/recordservice,placrosse/ImpalaToGo,XiaominZhang/Impala,cgvarela/Impala,kapilrastogi/Impala,theyaa/Impala,rdblue/Impala,grundprinzip/Impala,cchanning/Impala,caseyching/Impala,kapilrastogi/Impala,mapr/impala,tempbottle/Impala,cgvarela/Impala,placrosse/ImpalaToGo,cgvarela/Impala,mapr/impala,henryr/Impala,rdblue/Impala,cgvarela/Impala,bratatidas9/Impala-1,placrosse/ImpalaToGo,ImpalaToGo/ImpalaToGo,rdblue/Impala,caseyching/Impala,rdblue/Impala,bowlofstew/Impala,gerashegalov/Impala,lnliuxing/Impala,ibmsoe/ImpalaPPC,cgvarela/Impala,lirui-intel/Impala,placrosse/ImpalaToGo,lnliuxing/Impala,bowlofstew/Impala,mapr/impala,gerashegalov/Impala,gerashegalov/Impala,caseyching/Impala,ImpalaToGo/ImpalaToGo