Merge pull request #5643 from leoetlino/fix-memcpy

IOS/ES: Fix bug in ImportTicket ioctlv handler
This commit is contained in:
shuffle2 2017-06-18 15:37:08 -07:00 committed by GitHub
commit 98b751f810
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ IPCCommandResult ES::ImportTicket(const IOCtlVRequest& request)
std::vector<u8> bytes(request.in_vectors[0].size);
Memory::CopyFromEmu(bytes.data(), request.in_vectors[0].address, request.in_vectors[0].size);
std::vector<u8> cert_chain(request.in_vectors[1].size);
Memory::CopyFromEmu(bytes.data(), request.in_vectors[1].address, request.in_vectors[1].size);
Memory::CopyFromEmu(cert_chain.data(), request.in_vectors[1].address, request.in_vectors[1].size);
return GetDefaultReply(ImportTicket(bytes, cert_chain));
}