Coverity: CID 400831: Out of bonds access