am 5cc765aa: Add a missing bounds check.

* commit '5cc765aa8a87a5f96cdb4be9b67e20174d866ec4':
  Add a missing bounds check.