s3:utils: Align integer type
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 30 Oct 2023 22:33:39 +0000 (11:33 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 2 Nov 2023 03:08:37 +0000 (03:08 +0000)
commit55d06fa9e328897548455f757da1452138336016
treedab7d36c866a45f49dee6371a57fac18bdd5ddfb
parent8b2269328bf1d85c6505cf8ecb95977435bdf93c
s3:utils: Align integer type

If ‘count’ is larger than INT_MAX, ‘i’ might overflow in the loop and
lead to undefined behaviour.

See also CID 1548342.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_client/wsp_cli.c