[PATCH 5/5] dwrite: Validate 'CPAL' data before using it.