cpp: pixelbuffer test: Correct out of bounds array indices