libxrdp: planar compreesion, check for temp buffer limits