Secure out of bounds exception