libfreerdp-codec: fix off-by-one memory corruption in ico parser