mirror of
https://github.com/samba-team/samba.git
synced 2025-01-20 14:03:59 +03:00
CVE-2022-32745 s4/dsdb/util: Correctly copy values into message element
To use memcpy(), we need to specify the number of bytes to copy, rather than the number of ldb_val structures. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15008 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
This commit is contained in:
parent
4d2d30c21b
commit
65d96369fa
@ -1559,7 +1559,7 @@ int dsdb_get_expected_new_values(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
memcpy(v,
|
||||
tmp_el->values,
|
||||
tmp_el->num_values);
|
||||
tmp_el->num_values * sizeof(*v));
|
||||
v += tmp_el->num_values;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user