Array index [0] on zero length array is undefined on C++03
commitb43734a17cbd7b23bfda66d834f801c759135c1e
authorwfh@chromium.org <wfh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 14 Oct 2013 21:24:24 +0000 (14 21:24 +0000)
committerwfh@chromium.org <wfh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 14 Oct 2013 21:24:24 +0000 (14 21:24 +0000)
tree1eb15f4fe67c44431ce4eaaeb754290102ef655e
parenta941d4e57a9c663e2c9feb3779fef16f8f3f7457
Array index [0] on zero length array is undefined on C++03
and will assert when _ITERATOR_DEBUG_LEVEL is set to >= 1 on VS2010

Add protection against this code.

This is the same underlying issue as 132037 so tagging to that bug

BUG=132037
TEST=browser_tests --gtest_filter=OutOfProcessPPAPITest.*

Review URL: https://codereview.chromium.org/26005003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228529 0039d316-1c4b-4281-b951-d872f2087c98
content/renderer/pepper/pepper_truetype_font_win.cc
ppapi/tests/test_char_set.cc