crypt32: Use memmove rather than memcpy when addresses might overlap.
This commit is contained in:
parent
329761e7e1
commit
b9dae979a4
|
@ -2123,7 +2123,7 @@ BOOL WINAPI CertGetValidUsages(DWORD cCerts, PCCERT_CONTEXT *rghCerts,
|
|||
{
|
||||
if (j < validUsages.cUsageIdentifier - 1)
|
||||
{
|
||||
memcpy(&validUsages.rgpszUsageIdentifier[j],
|
||||
memmove(&validUsages.rgpszUsageIdentifier[j],
|
||||
&validUsages.rgpszUsageIdentifier[j +
|
||||
numRemoved + 1],
|
||||
(validUsages.cUsageIdentifier - numRemoved
|
||||
|
|
Loading…
Reference in New Issue