am e40974d9: Merge "Fix an overflow found by ASAN."

* commit 'e40974d92873462c4f1b100c7d03b3f41756c807':
  Fix an overflow found by ASAN.