Tweak Carlos' change to cater for the additional cases: - More (ordered) segments than we expect - would previously cause stack-based buffer overflow. - Less segments than we expect, where the missing segments are a strict truncation rather than missing in the middle.
Tweak Carlos' change to cater for the additional cases:
- More (ordered) segments than we expect - would previously cause stack-based
buffer overflow.
- Less segments than we expect, where the missing segments are a strict
truncation rather than missing in the middle.

BUG=NONE
TEST=NONE

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

git-svn-id: http://src.chromium.org/svn/trunk/src@26493 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 5bfffcbcf2c4f5eca6357a1ff3e0d97d8410dec8
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser