Add check for size of vectors.
Add check for size of vectors.

BUG=73393
TEST=existing unittests will cover the bug.


git-svn-id: 0e3d3500f59afd9abff519869ed878e5f2d4e9ab@55 a4e77c2c-9104-11de-800e-5b313e0d2bf3

jgcaaprom/android_external_chromium_org_third_party_ots,MIPS/external-chromium_org-third_party-ots,MIPS/external-chromium_org-third_party-ots,xin3liang/platform_external_chromium_org_third_party_ots,AOSPU/external_chromium_org_third_party_ots,TeamEOS/external_chromium_org_third_party_ots,jgcaaprom/android_external_chromium_org_third_party_ots,android-ia/platform_external_chromium_org_third_party_ots,IllusionRom-deprecated/android_platform_external_chromium_org_third_party_ots,yinquan529/platform-external-chromium_org-third_party-ots,AOSPU/external_chromium_org_third_party_ots,android-ia/platform_external_chromium_org_third_party_ots,geekboxzone/lollipop_external_chromium_org_third_party_ots,Omegaphora/external_chromium_org_third_party_ots,MIPS/external-chromium_org-third_party-ots,xin3liang/platform_external_chromium_org_third_party_ots,android-ia/platform_external_chromium_org_third_party_ots,MIPS/external-chromium_org-third_party-ots,xin3liang/platform_external_chromium_org_third_party_ots,yinquan529/platform-external-chromium_org-third_party-ots,IllusionRom-deprecated/android_platform_external_chromium_org_third_party_ots,geekboxzone/lollipop_external_chromium_org_third_party_ots,yinquan529/platform-external-chromium_org-third_party-ots,jgcaaprom/android_external_chromium_org_third_party_ots,TeamEOS/external_chromium_org_third_party_ots,geekboxzone/lollipop_external_chromium_org_third_party_ots,IllusionRom-deprecated/android_platform_external_chromium_org_third_party_ots,AOSPU/external_chromium_org_third_party_ots,Omegaphora/external_chromium_org_third_party_ots,bpsinc-native/src_third_party_ots,AOSPU/external_chromium_org_third_party_ots,IllusionRom-deprecated/android_platform_external_chromium_org_third_party_ots,Omegaphora/external_chromium_org_third_party_ots,TeamEOS/external_chromium_org_third_party_ots,xin3liang/platform_external_chromium_org_third_party_ots,bpsinc-native/src_third_party_ots,bpsinc-native/src_third_party_ots