Merge pull request #10592 from AdmiralCurtiss/pointerwrap-protections Common/PointerWrap: Prevent reads/writes past the end of the buffer.