[PATCH openEuler-1.0-LTS] acct: fix potential integer overflow in encode_comp_t()