Fix CID 1214583

Fix a Out-of-bounds read