The badpixel script would not cause a haze. All it does is make a list of pixel the canon firmware set to below black level. CHDK takes this list an interpolates over those pixels.
The only conversion CHDK does to the actual data is reversing the byte order (as required by the DNG spec for 10 and 12 bit data). You'd see more than a haze if this was going wrong