Fix a bug where an unsigned calculation goes negative and causes very large memcpy() call.

Potentially fixes the crash listed in the bug.

BUG=589616

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

Cr-Commit-Position: refs/heads/master@{#377709}
2 files changed