mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
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>
This commit is contained in:
parent
8b2269328b
commit
55d06fa9e3
@ -981,7 +981,7 @@ static enum ndr_err_code extract_variant_addresses(TALLOC_CTX *ctx,
|
||||
vec_address[0] = addr;
|
||||
} else {
|
||||
uint64_t array_addr = addr;
|
||||
int i;
|
||||
uint64_t i;
|
||||
for (i = 0; i < count; i++) {
|
||||
if (is_64bit) {
|
||||
vec_address[i] =
|
||||
|
Loading…
x
Reference in New Issue
Block a user