[PATCH 5.4 393/658] acct: fix potential integer overflow in encode_comp_t()