The stack allocated color map buffers were not zeroed before usage, and so undefined palette indexes could cause information leakage.