libfreerdp-codec/rfx: fix memory corruptions.