pes: check the color index, fail if out of range

Fixes crash when there are more than 256 blocks.

Signed-off-by: Max Kellermann <max.kellermann@gmail.com>
1 file changed