mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Backed out changeset 982be1bbebdf (bug 1199624) for Windows bustage.
This commit is contained in:
parent
c8309c6328
commit
c7fdbe4d0f
@ -487,7 +487,8 @@ CertPolicyId::IsAnyPolicy() const {
|
||||
return true;
|
||||
}
|
||||
return numBytes == sizeof(::mozilla::pkix::anyPolicy) &&
|
||||
std::equal(bytes, bytes + numBytes, ::mozilla::pkix::anyPolicy);
|
||||
!memcmp(bytes, ::mozilla::pkix::anyPolicy,
|
||||
sizeof(::mozilla::pkix::anyPolicy));
|
||||
}
|
||||
|
||||
// certificatePolicies ::= SEQUENCE SIZE (1..MAX) OF PolicyInformation
|
||||
|
@ -1700,8 +1700,8 @@ FinishIPv6Address(/*in/out*/ uint8_t (&address)[16], int numComponents,
|
||||
address + (2u * static_cast<size_t>(contractionIndex)),
|
||||
componentsToMove * 2u);
|
||||
// Fill in the contracted area with zeros.
|
||||
std::fill_n(address + 2u * static_cast<size_t>(contractionIndex),
|
||||
8u - static_cast<size_t>(numComponents) * 2u, 0u);
|
||||
memset(address + (2u * static_cast<size_t>(contractionIndex)), 0u,
|
||||
(8u - static_cast<size_t>(numComponents)) * 2u);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user