Fix potential overrun by optimized code.

Change-Id: I0435eb04d51c3f95a9db4af2dbd7da0919dfe366
1 file changed