Protect against integer overflows in the IndexBuffer class by validating that the new write position will not overflow.
Protect against integer overflows in the IndexBuffer class by validating that the new write position will not overflow.

Issue 444

Signed-off-by: Jamie Madil
Signed-off-by: Shannon Woods
Author: Geoff Lang

xin3liang/platform_external_chromium_org_third_party_angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,cvsuser-chromium/chromium-third-party_angle_dx11,geekboxzone/lollipop_external_chromium_org_third_party_angle,android-ia/platform_external_chromium_org_third_party_angle,jgcaaprom/android_external_chromium_org_third_party_angle,themusicgod1/angleproject,MIPS/external-chromium_org-third_party-angle,jgcaaprom/android_external_chromium_org_third_party_angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,shairai/angleproject,cvsuser-chromium/chromium-third-party_angle_dx11,RepublicMaster/angleproject,KalebDark/angleproject,cvsuser-chromium/chromium-third-party_angle_dx11,geekboxzone/lollipop_external_chromium_org_third_party_angle,shairai/angleproject,jgcaaprom/android_external_chromium_org_third_party_angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,pombreda/angleproject,xin3liang/platform_external_chromium_org_third_party_angle,xuxiandi/angleproject,xin3liang/platform_external_chromium_org_third_party_angle_dx11,ehsan/angle,cvsuser-chromium/chromium-third-party_angle_dx11,themusicgod1/angleproject,xin3liang/platform_external_chromium_org_third_party_angle,shairai/angleproject,RepublicMaster/angleproject,xin3liang/platform_external_chromium_org_third_party_angle,MIPS/external-chromium_org-third_party-angle_dx11,cantren/angleproject,MIPS/external-chromium_org-third_party-angle,themusicgod1/angleproject,ehsan/angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,MIPS/external-chromium_org-third_party-angle_dx11,xin3liang/platform_external_chromium_org_third_party_angle_dx11,RepublicMaster/angleproject,RepublicMaster/angleproject,KalebDark/angleproject,xin3liang/platform_external_chromium_org_third_party_angle_dx11,android-ia/platform_external_chromium_org_third_party_angle,KalebDark/angleproject,cantren/angleproject,pombreda/angleproject,KalebDark/angleproject,android-ia/platform_external_chromium_org_third_party_angle,ehsan/angle,MIPS/external-chromium_org-third_party-angle_dx11,xuxiandi/angleproject,cantren/angleproject,vvuk/angle-old,pombreda/angleproject,shairai/angleproject,vvuk/angle-old,pombreda/angleproject,MIPS/external-chromium_org-third_party-angle,MIPS/external-chromium_org-third_party-angle_dx11,android-ia/platform_external_chromium_org_third_party_angle_dx11,geekboxzone/lollipop_external_chromium_org_third_party_angle,themusicgod1/angleproject,android-ia/platform_external_chromium_org_third_party_angle,ehsan/angle,jgcaaprom/android_external_chromium_org_third_party_angle,cantren/angleproject,vvuk/angle-old,xuxiandi/angleproject,vvuk/angle-old,android-ia/platform_external_chromium_org_third_party_angle_dx11,MIPS/external-chromium_org-third_party-angle,xuxiandi/angleproject